Include dependencies at the end.
authorDaniel Carl <danielcarl@gmx.de>
Mon, 16 Apr 2018 21:27:18 +0000 (23:27 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 16 Apr 2018 21:27:18 +0000 (23:27 +0200)
src/Makefile
src/webextension/Makefile

index 9c0ed2b..412e1a1 100644 (file)
@@ -19,8 +19,6 @@ setting.o: scripts/scripts.h
 
 scripts/scripts.h: scripts.subdir-all
 
--include $(OBJ:.o=.d)
-
 config.h:
        @echo create $@ from config.def.h
        $(Q)cp config.def.h $@
@@ -35,4 +33,6 @@ config.h:
 %.subdir-clean:
        $(Q)$(MAKE) -C $* clean
 
+-include $(OBJ:.o=.d)
+
 .PHONY: all clean
index 2f438b5..5189e65 100644 (file)
@@ -15,4 +15,6 @@ $(EXTTARGET): $(OBJ)
        @echo "${CC} $@"
        $(Q)$(CC) $(EXTCPPFLAGS) $(EXTCFLAGS) -fPIC -c -o $@ $<
 
+-include $(OBJ:.lo=.d)
+
 .PHONY: all clean