Don't generate .depend anymore

This commit is contained in:
Xiang Xiao
2020-03-22 13:15:29 -05:00
committed by GitHub
parent 1b4425ab5d
commit 79af7fbf4e
231 changed files with 155 additions and 460 deletions
-1
View File
@@ -1,4 +1,3 @@
/chip
/board
/.depend
/Make.dep
+3 -5
View File
@@ -168,15 +168,14 @@ export_startup: board/libboard$(LIBEXT) $(STARTUP_OBJS)
# Dependencies
.depend: Makefile chip/Make.defs $(SRCS)
Make.dep: Makefile chip/Make.defs $(SRCS)
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" depend
endif
$(Q) $(MKDEP) --dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR) \
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
$(Q) touch $@
"$(CC)" -- $(CFLAGS) -- $(SRCS) >$@
depend: .depend
depend: Make.dep
clean:
ifeq ($(BOARDMAKE),y)
@@ -190,6 +189,5 @@ ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean
endif
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)
-include Make.dep