blob: 08a128963b2fab6247df3109f0e417a04a92500d [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001# included from the main makefile to include a set of rules.mk to satisfy
2# the current MODULE list. If as a byproduct of including the rules.mk
3# more stuff shows up on the MODULE list, recurse
4
5# sort and filter out any modules that have already been included
6MODULES := $(sort $(MODULES))
7MODULES := $(filter-out $(ALLMODULES),$(MODULES))
8
9ifneq ($(MODULES),)
10
11ALLMODULES += $(MODULES)
12ALLMODULES := $(sort $(ALLMODULES))
13INCMODULES := $(MODULES)
14MODULES :=
15$(info including $(INCMODULES))
16include $(addsuffix /rules.mk,$(INCMODULES))
17
18include make/recurse.mk
19
20endif
21