1
0

Makefile: refactor subdirectory makefiles

This commit is contained in:
2012-09-26 15:35:52 -04:00
parent f9244836e1
commit c455b1eeb3
9 changed files with 74 additions and 23 deletions

12
footer.mk Normal file
View File

@ -0,0 +1,12 @@
# Included at the bottom of each subdirectory Makefile
# Include any subdirectory Makefiles
ifneq (,$(SUBDIRS))
include $(patsubst %,$(d)/%/kernel.mk,$(SUBDIRS))
endif
# Pop the previous directory off the 'stack'
d := $(dirstack_$(sp))
sp := $(basename $(sp))
# Clear SUBDIRS so that it defaults to empty for the next directory
SUBDIRS :=