better makefile

Signed-off-by: Mathéo Hersan <matheohersan@MacBook-Pro-de-Matheo.local>
pull/12/head
Mathéo Hersan 1 year ago
parent 558688be50
commit c7cae96df3
No known key found for this signature in database
GPG Key ID: 4EF19C64D78EC91B

@ -1,4 +1,4 @@
GCCFLAGS = -Wall -Wextra -I src -Wno-unused-parameter -Wno-unused-but-set-variable
GCCFLAGS = -Wall -Wextra -pedantic -I src -Wno-unused-parameter -Wno-unused-but-set-variable
BUILD_DIR = build
SOURCES = $(shell find src -name '*.c')
TARGETS = $(patsubst %.c, %.o, $(SOURCES))
@ -22,6 +22,7 @@ $(TARGETS): $(SOURCES)
clean:
@rm -r $(BUILD_DIR) $(APP_NAME)
@rm -r docs/html docs/latex
@rm -r obj/*.o, obj/*.d
@echo clean done.
docs:

Loading…
Cancel
Save