5 include $(TOPDIR)/rules.mk
6 include $(TOPDIR)/package/depend.mk
8 PACKAGES:=$(filter-out %.mk,$(shell ls $(TOPDIR)/package))
9 PACKAGES_PREPARE:=$(foreach package,$(PACKAGES),$(package)-prepare)
10 PACKAGES_COMPILE:=$(foreach package,$(PACKAGES),$(package)-compile)
11 PACKAGES_CLEAN:=$(foreach package,$(PACKAGES),$(package)-clean)
14 compile: $(PACKAGES_COMPILE)
15 clean: $(PACKAGES_CLEAN)
22 %-prepare: $(BUILD_DIR)
23 @$(MAKE) -C package/$(patsubst %-prepare,%,$@) prepare
26 @$(MAKE) -C package/$(patsubst %-compile,%,$@) compile
29 @$(MAKE) -C package/$(patsubst %-clean,%,$@) clean