2005-03-06 05:34:52 +02:00
|
|
|
# Main makefile for the packages
|
|
|
|
include $(TOPDIR)/rules.mk
|
2006-05-16 03:32:57 +03:00
|
|
|
include $(TOPDIR)/.config
|
2006-05-30 21:55:52 +03:00
|
|
|
include $(TOPDIR)/.pkgdeps
|
2006-05-16 03:32:57 +03:00
|
|
|
|
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
|
|
|
|
2006-05-10 23:32:22 +03:00
|
|
|
$(STAMP_DIR) $(TARGET_DIR):
|
2005-07-19 03:48:36 +03:00
|
|
|
mkdir -p $@
|
|
|
|
|
2005-10-22 03:06:20 +03:00
|
|
|
%-prepare: $(STAMP_DIR) $(TARGET_DIR)
|
2006-05-31 23:58:13 +03:00
|
|
|
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare MAKEFLAGS="$(BUILD_MAKEFLAGS)"
|
2005-03-06 05:34:52 +02:00
|
|
|
|
2006-05-10 23:32:22 +03:00
|
|
|
%-compile: $(STAMP_DIR) $(TARGET_DIR)
|
2006-05-16 03:32:57 +03:00
|
|
|
@echo "-> make $@"
|
2006-05-31 23:58:13 +03:00
|
|
|
$(MAKE) -C $(patsubst %-compile,%,$@) compile MAKEFLAGS="$(BUILD_MAKEFLAGS)"
|
2005-06-05 17:45:48 +03:00
|
|
|
|
2006-05-31 23:00:21 +03:00
|
|
|
%-install: $(STAMP_DIR) $(TARGET_DIR)
|
|
|
|
@echo "-> make $@"
|
2006-05-31 23:58:13 +03:00
|
|
|
$(MAKE) -C $(patsubst %-install,%,$@) install MAKEFLAGS="$(BUILD_MAKEFLAGS)"
|
2006-05-31 23:00:21 +03:00
|
|
|
|
2006-05-10 23:32:22 +03:00
|
|
|
%-clean: $(STAMP_DIR) $(TARGET_DIR)
|
2006-05-31 23:58:13 +03:00
|
|
|
$(MAKE) -C $(patsubst %-clean,%,$@) clean MAKEFLAGS="$(BUILD_MAKEFLAGS)"
|
2005-03-06 05:34:52 +02:00
|
|
|
|
2006-05-16 03:32:57 +03:00
|
|
|
|
2006-05-30 21:55:52 +03:00
|
|
|
$(TOPDIR)/.pkgdeps: $(TOPDIR)/.pkginfo
|
2006-05-16 03:32:57 +03:00
|
|
|
@$(TOPDIR)/scripts/gen_deps.pl < $< > $@ || rm -f $@
|
|
|
|
|
|
|
|
all: compile
|
|
|
|
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
2006-05-31 23:58:13 +03:00
|
|
|
compile-targets: $(COMPILE_PACKAGES)
|
|
|
|
compile:
|
|
|
|
$(MAKE) -j$(CONFIG_JLEVEL) compile-targets
|
|
|
|
install-targets: base-files-install $(INSTALL_PACKAGES)
|
|
|
|
install:
|
|
|
|
rm -rf $(BUILD_DIR)/root
|
|
|
|
$(MAKE) install-targets
|
2006-05-16 03:32:57 +03:00
|
|
|
|