From 95bdcf394e439d688a5290a26a15e0bc31144f91 Mon Sep 17 00:00:00 2001 From: mbm Date: Tue, 16 May 2006 00:32:57 +0000 Subject: finish up package makefile git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3786 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/Makefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'package/Makefile') diff --git a/package/Makefile b/package/Makefile index e0bd23c7ec..af746715ba 100644 --- a/package/Makefile +++ b/package/Makefile @@ -1,13 +1,11 @@ # Main makefile for the packages include $(TOPDIR)/rules.mk +include $(TOPDIR)/.config +include .pkgdeps + COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m)) INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y)) -all: compile -clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) -compile: $(COMPILE_PACKAGES) -install: base-files-install $(INSTALL_PACKAGES) - $(STAMP_DIR) $(TARGET_DIR): mkdir -p $@ @@ -15,8 +13,19 @@ $(STAMP_DIR) $(TARGET_DIR): $(MAKE) -C $(patsubst %-prepare,%,$@) prepare %-compile: $(STAMP_DIR) $(TARGET_DIR) + @echo "-> make $@" $(MAKE) -C $(patsubst %-compile,%,$@) compile %-clean: $(STAMP_DIR) $(TARGET_DIR) $(MAKE) -C $(patsubst %-clean,%,$@) clean + +.pkgdeps: $(TOPDIR)/.pkginfo FORCE + @$(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) + + -- cgit v1.2.3