2005-03-06 11:34:52 +08:00
|
|
|
# Main makefile for the packages
|
|
|
|
include $(TOPDIR)/rules.mk
|
2005-07-18 06:52:59 +08:00
|
|
|
COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m))
|
|
|
|
INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y))
|
2005-04-11 04:28:17 +08:00
|
|
|
|
2005-07-25 03:58:14 +08:00
|
|
|
all: compile
|
2005-05-28 17:17:29 +08:00
|
|
|
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
2005-07-18 06:52:59 +08:00
|
|
|
compile: $(COMPILE_PACKAGES)
|
|
|
|
install: base-files-install $(INSTALL_PACKAGES)
|
|
|
|
|
2006-05-11 04:32:22 +08:00
|
|
|
$(STAMP_DIR) $(TARGET_DIR):
|
2005-07-19 08:48:36 +08:00
|
|
|
mkdir -p $@
|
|
|
|
|
2005-10-22 08:06:20 +08:00
|
|
|
%-prepare: $(STAMP_DIR) $(TARGET_DIR)
|
2006-05-11 04:32:22 +08:00
|
|
|
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare
|
2005-03-06 11:34:52 +08:00
|
|
|
|
2006-05-11 04:32:22 +08:00
|
|
|
%-compile: $(STAMP_DIR) $(TARGET_DIR)
|
|
|
|
$(MAKE) -C $(patsubst %-compile,%,$@) compile
|
2005-06-05 22:45:48 +08:00
|
|
|
|
2006-05-11 04:32:22 +08:00
|
|
|
%-clean: $(STAMP_DIR) $(TARGET_DIR)
|
|
|
|
$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
2005-03-06 11:34:52 +08:00
|
|
|
|