Make.dep:ensure that Make.dep in the .depend phase is always regenerated
according to the dependency of the .depend target, Make.dep is always generated additionally when src is modified. this will cause the Make.dep file to gradually increase in size during each incremental compilation, causing the Makefile to take longer to load. Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
6770bcc61d
commit
cfa6c5deb8
@ -329,6 +329,7 @@ register::
|
||||
endif
|
||||
|
||||
.depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH))))) $(DEPCONFIG)
|
||||
$(shell echo "# Gen Make.dep automatically" >Make.dep)
|
||||
$(call SPLITVARIABLE,ALL_DEP_OBJS,$^,100)
|
||||
$(foreach BATCH, $(ALL_DEP_OBJS_TOTAL), \
|
||||
$(shell $(MKDEP) $(DEPPATH) --obj-suffix .c$(SUFFIX)$(OBJEXT) "$(CC)" -- $(CFLAGS) -- $(filter %.c,$(ALL_DEP_OBJS_$(BATCH))) >>Make.dep) \
|
||||
|
Loading…
Reference in New Issue
Block a user