summaryrefslogtreecommitdiff
path: root/package/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-30 21:14:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-30 21:14:08 +0000
commitd7f2cb164209468046dc093a35d4f10c7350944b (patch)
treef5c562b565716be8d74e1660634d5dd8779ae81f /package/Makefile
parenta7b635f07546eadbdd8c6dc0cfd623290622f026 (diff)
downloadmtk-20170518-d7f2cb164209468046dc093a35d4f10c7350944b.zip
mtk-20170518-d7f2cb164209468046dc093a35d4f10c7350944b.tar.gz
mtk-20170518-d7f2cb164209468046dc093a35d4f10c7350944b.tar.bz2
next round of cleanup, convert target/ - make -j works now ;)
SVN-Revision: 8242
Diffstat (limited to 'package/Makefile')
-rw-r--r--package/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/package/Makefile b/package/Makefile
index 78ea070..e94b90d 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)))