diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,9 +1,10 @@ BIN=ddhardrescue -CFLAGS=-Iinc -Wall -g -pg +CFLAGS=-Iinc -Wall -Werror -Wfatal-errors -g -pg LIBS=-lpanel -lncurses -lpthread - #FIXME : liste des dépendances = tous les .c trouvés. C'est nul. + +all: $(BIN) $(BIN): bin/$(BIN) bin/$(BIN): obj/$(BIN).o $(patsubst src/%.c,obj/%.o,$(wildcard src/*.c)) @@ -22,5 +23,9 @@ Makefile src/%.c inc/%.h: ; clean: -rm -f obj/*.o deps/*.d bin/* +cont: + while true; do clear; date; LANG=C make; echo "make returns '$$?'";\ + inotifywait -e modify -r . --exclude '(~$$|\.swp$$)' 2>/dev/null; done + include $(patsubst src/%.c,deps/%.d,$(wildcard src/*.c)) |