From 196ad55bd2bdad8c5c86249afd4b1cec04855d35 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 30 Jul 2007 21:14:08 +0000 Subject: next round of cleanup, convert target/ - make -j works now ;) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8242 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'package/Makefile') diff --git a/package/Makefile b/package/Makefile index 78ea07068..e94b90d4a 100644 --- a/package/Makefile +++ b/package/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2007 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,14 +8,14 @@ curdir:=package -include .config -include $(TMP_DIR)/.packagedeps $(curdir)/builddirs:=$(sort $(package-) $(package-y) $(package-m)) $(curdir)/builddirs-default:=. $(sort $(package-y) $(package-m)) $(curdir)/builddirs-prereq:=. $(sort $(prereq-y) $(prereq-m)) $(curdir)/builddirs-install:=. $(sort $(package-y)) -$(curdir)//compile:=.config prereq +$(curdir)//compile = $(1)/prepare +$(curdir)//install = $(1)/compile $(curdir)/install:=$(curdir)/install-cleanup $(curdir)/install-cleanup: rm -rf $(BUILD_DIR)/root @@ -39,5 +39,12 @@ $(curdir)/install-cleanup: $(curdir)/index: FORCE (cd $(PACKAGE_DIR); $(SCRIPT_DIR)/ipkg-make-index.sh . > Packages) +$(curdir)/flags-install:= -j1 + $(eval $(call stampfile,$(curdir),package,prereq)) +$(eval $(call stampfile,$(curdir),package,compile)) +$(eval $(call stampfile,$(curdir),package,install)) + +$($(curdir)/stamp-install): $($(curdir)/stamp-compile) + $(eval $(call subdir,$(curdir))) -- cgit v1.2.3