summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2001-12-17 02:32:22 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2001-12-17 02:32:22 +0000
commitf68e56c389765e96d374fbb9f6e3cc86ca1b1a1e (patch)
tree46206899ae8ca78a529c724dd73b18e44d6a3b43 /Makefile
parent72f6aad26da8e24e8f6430a4a6b086e945040a5e (diff)
downloadpkgsrc-f68e56c389765e96d374fbb9f6e3cc86ca1b1a1e.tar.gz
- add 'bulk-cache' and 'clean-bulk-cache' targets to create and remove
the cache files used during a bulk pkgsrc build. - replace the code in the build script that used to create the cache files with a 'make bulk-cache' call.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fae7f2a224e..4b5f29295cc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2001/07/17 13:11:51 wiz Exp $
+# $NetBSD: Makefile,v 1.45 2001/12/17 02:32:22 dmcmahill Exp $
#
.include "mk/bsd.prefs.mk"
@@ -53,6 +53,14 @@ PKGSRCTOP= yes
.include "mk/bsd.pkg.subdir.mk"
+# the bulk-cache and clean-bulk-cache targets are a global-pkgsrc
+# thing and thus it makes sense to run it from the top level pkgsrc
+# directory.
+.if make(bulk-cache) || make(clean-bulk-cache)
+.include "${.CURDIR}/mk/bulk/bsd.bulk-pkg.mk"
+_PKGSRCDIR?=${.CURDIR}
+.endif
+
index:
@rm -f ${.CURDIR}/INDEX
@${MAKE} ${.CURDIR}/INDEX