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