Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 1 | # 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 |
| 6 | MODULES := $(sort $(MODULES)) |
| 7 | MODULES := $(filter-out $(ALLMODULES),$(MODULES)) |
| 8 | |
| 9 | ifneq ($(MODULES),) |
| 10 | |
| 11 | ALLMODULES += $(MODULES) |
| 12 | ALLMODULES := $(sort $(ALLMODULES)) |
| 13 | INCMODULES := $(MODULES) |
| 14 | MODULES := |
| 15 | $(info including $(INCMODULES)) |
| 16 | include $(addsuffix /rules.mk,$(INCMODULES)) |
| 17 | |
Travis Geiselbrecht | 5bcbd9d | 2009-01-24 20:15:32 -0800 | [diff] [blame] | 18 | include make/module.mk |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 19 | |
| 20 | endif |
| 21 | |