blob: 9e82ef3b288cae0d08f905a4d78f736e7ea1ed02 [file] [log] [blame]
Travis Geiselbrechtf54ab822008-09-05 04:14:40 -07001# 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
Travis Geiselbrecht5bcbd9d2009-01-24 20:15:32 -080018include make/module.mk
Travis Geiselbrechtf54ab822008-09-05 04:14:40 -070019
20endif
21