Makefile : déplacer la règle clean avec les autres règles PHONY

This commit is contained in:
Ahurac 2024-02-20 15:31:03 +01:00
parent 1cb78fb97b
commit c8be7733d0

View file

@ -11,11 +11,11 @@ run: all
debug: all debug: all
gdb $(BIN) gdb $(BIN)
clean:
rm -f -- $(wildcard $(BIND)/*)
$(BIND): $(BIND):
mkdir -p -- $@ mkdir -p -- $@
$(BIN): $(wildcard src/*.c) $(BIN): $(wildcard src/*.c)
cc -g -Wall -Wextra -Werror -o $@ $^ cc -g -Wall -Wextra -Werror -o $@ $^
clean:
rm -f -- $(wildcard $(BIND)/*)