Makefile: Fix Make.dep not updated by config changes

Make.dep file should be updated by .config changed after first make.
There are 2 cases affected for this problem:

 1) Add source files by config symbol
 2) Include header files in #ifdef directive

These 2 cases may not be included in Make.dep and this may prevent the
differential build from working correctly.
This commit is contained in:
SPRESENSE
2020-07-22 16:54:29 +09:00
committed by Xiang Xiao
parent d560ce65ff
commit e249a2f82f
38 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ endif
# Dependencies
.depend: Makefile chip$(DELIM)Make.defs $(SRCS)
.depend: Makefile chip$(DELIM)Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" depend
endif