Browse code

Add missing Make dependencies

Thodoris Sotiropoulos authored on 04/01/2020 22:50:06
Showing 2 changed files

... ...
@@ -1,5 +1,6 @@
1 1
 fzy
2 2
 fzytest
3 3
 *.o
4
+*.d
4 5
 config.h
5 6
 test/acceptance/vendor/bundle
... ...
@@ -1,7 +1,7 @@
1 1
 VERSION=1.0
2 2
 
3 3
 CPPFLAGS=-DVERSION=\"${VERSION}\" -D_GNU_SOURCE
4
-CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps -Werror=vla
4
+CFLAGS+=-MD -Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps -Werror=vla
5 5
 PREFIX?=/usr/local
6 6
 MANDIR?=$(PREFIX)/share/man
7 7
 BINDIR?=$(PREFIX)/bin
... ...
@@ -49,9 +49,11 @@ fmt:
49 49
 	clang-format -i src/*.c src/*.h
50 50
 
51 51
 clean:
52
-	rm -f fzy test/fzytest src/*.o deps/*/*.o
52
+	rm -f fzy test/fzytest src/*.o src/*.d deps/*/*.o
53 53
 
54 54
 veryclean: clean
55 55
 	rm -f config.h
56 56
 
57 57
 .PHONY: test check all clean veryclean install fmt acceptance
58
+
59
+-include $(OBJECTS:.o=.d)