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