2005-03-06 03:34:52 +00:00
|
|
|
# Main makefile for the packages
|
|
|
|
include $(TOPDIR)/rules.mk
|
2005-07-17 22:52:59 +00:00
|
|
|
COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m))
|
|
|
|
INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y))
|
2005-04-10 20:28:17 +00:00
|
|
|
|
2005-07-24 19:58:14 +00:00
|
|
|
all: compile
|
2005-05-28 09:17:29 +00:00
|
|
|
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
2005-07-17 22:52:59 +00:00
|
|
|
compile: $(COMPILE_PACKAGES)
|
|
|
|
install: base-files-install $(INSTALL_PACKAGES)
|
|
|
|
|
2005-07-24 19:58:14 +00:00
|
|
|
$(COMPILE_PACKAGES): base-files-compile
|
2005-07-17 22:52:59 +00:00
|
|
|
$(INSTALL_PACKAGES): base-files-install
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2005-07-19 00:48:36 +00:00
|
|
|
$(STAMP_DIR):
|
|
|
|
mkdir -p $@
|
|
|
|
|
2005-10-22 00:06:20 +00:00
|
|
|
$(TARGET_DIR):
|
|
|
|
mkdir -p $(TARGET_DIR)
|
|
|
|
|
|
|
|
%-prepare: $(STAMP_DIR) $(TARGET_DIR)
|
|
|
|
@[ -f $(STAMP_DIR)/.$@ ] || { \
|
2006-01-14 01:57:24 +00:00
|
|
|
$(START_TRACE) "package/$(patsubst %-prepare,%,$@)-prepare: "; \
|
2005-10-22 21:54:11 +00:00
|
|
|
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare && { \
|
|
|
|
touch $(STAMP_DIR)/.$@; \
|
|
|
|
$(CMD_TRACE) " done"; \
|
|
|
|
$(END_TRACE); \
|
|
|
|
} \
|
2005-10-22 00:06:20 +00:00
|
|
|
}
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2005-10-22 14:15:32 +00:00
|
|
|
%-compile:
|
2005-10-22 00:06:20 +00:00
|
|
|
@[ -f $(STAMP_DIR)/.$@ ] || { \
|
2006-01-14 01:57:24 +00:00
|
|
|
$(START_TRACE) "package/$(patsubst %-compile,%,$@)-compile: "; \
|
2005-10-22 21:54:11 +00:00
|
|
|
$(MAKE) -C $(patsubst %-compile,%,$@) compile && { \
|
|
|
|
touch $(STAMP_DIR)/.$(patsubst %-compile,%,$@)-prepare; \
|
|
|
|
touch $(STAMP_DIR)/.$@; \
|
|
|
|
$(CMD_TRACE) " done"; \
|
|
|
|
$(END_TRACE); \
|
|
|
|
} \
|
2005-10-22 00:06:20 +00:00
|
|
|
}
|
2005-03-06 03:34:52 +00:00
|
|
|
|
|
|
|
%-install: %-compile
|
2006-01-14 01:57:24 +00:00
|
|
|
@$(START_TRACE) "package/$(patsubst %-install,%,$@)-install: "
|
2005-10-22 00:06:20 +00:00
|
|
|
@$(MAKE) -C $(patsubst %-install,%,$@) install
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(CMD_TRACE) " done"
|
|
|
|
@$(END_TRACE)
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2005-06-05 14:45:48 +00:00
|
|
|
%-rebuild:
|
2006-01-14 01:57:24 +00:00
|
|
|
@$(START_TRACE) "package/$(patsubst %-rebuild,%,$@)-rebuild: "
|
2005-06-05 14:45:48 +00:00
|
|
|
@rm -f $(STAMP_DIR)/.$(patsubst %-rebuild,%,$@)-*
|
|
|
|
$(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(CMD_TRACE) " done"
|
|
|
|
@$(END_TRACE)
|
2005-06-05 14:45:48 +00:00
|
|
|
|
2005-03-06 03:34:52 +00:00
|
|
|
%-clean:
|
2006-01-14 01:57:24 +00:00
|
|
|
@$(START_TRACE) "package/$(patsubst %-clean,%,$@)-clean: "
|
2005-03-06 03:34:52 +00:00
|
|
|
@$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
|
|
|
@rm -f $(STAMP_DIR)/.$(patsubst %-clean,%,$@)-*
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(CMD_TRACE) " done"
|
|
|
|
@$(END_TRACE)
|
2005-03-06 03:34:52 +00:00
|
|
|
|