7 include $(TOPDIR)/rules.mk
8 include $(TOPDIR)/package/depend.mk
10 PACKAGES:=$(filter-out %.mk,$(shell ls $(TOPDIR)/package))
11 PACKAGES_PREPARE:=$(foreach package,$(PACKAGES),$(package)-prepare)
12 PACKAGES_COMPILE:=$(foreach package,$(PACKAGES),$(package)-compile)
13 PACKAGES_CLEAN:=$(foreach package,$(PACKAGES),$(package)-clean)
16 compile: $(PACKAGES_COMPILE)
17 clean: $(PACKAGES_CLEAN)
24 %-prepare: $(BUILD_DIR)
25 @$(MAKE) -C package/$(patsubst %-prepare,%,$@) prepare
28 @$(MAKE) -C package/$(patsubst %-compile,%,$@) compile
31 @$(MAKE) -C package/$(patsubst %-clean,%,$@) clean