Fixed wrong placed dependency include in Makefile.
authorDaniel Carl <danielcarl@gmx.de>
Fri, 4 Jul 2014 22:42:04 +0000 (00:42 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 5 Jul 2014 13:48:37 +0000 (15:48 +0200)
Allow to generate dependency files during compilation with CFLAGS="-MMD".

.gitignore
Makefile

index 7439153..619fd38 100644 (file)
@@ -1,4 +1,4 @@
-*.[oa]
+*.[oad]
 *.[ld]o
 vimb
 vimb_dbg
index b8dcf74..a774760 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
 include config.mk
 
--include $(DEPS)
-
 all:   $(TARGET)
 debug: $(DTARGET)
 test:  $(LIBTARGET)
@@ -82,4 +80,6 @@ src/config.h:
        @echo "${CC} $@"
        @$(CC) -DTESTLIB $(DFLAGS) -fPIC -c -o $@ $<
 
+-include $(DEPS)
+
 .PHONY: clean debug all install uninstall options dist dist-clean test test-clean