Makefile: refactor subdirectory makefiles
This commit is contained in:
12
footer.mk
Normal file
12
footer.mk
Normal 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 :=
|
Reference in New Issue
Block a user