summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2010-02-27 03:37:58 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2010-02-27 03:37:58 +0000
commite032d3f96bf923ac91c9e8f17449634a2f81bf02 (patch)
treed2e25b40931ac4308e5999f67d0afa2ac5bd1b98 /mk
parentb7e4c3da1071216ac0735cd63b4124d71c44b6a7 (diff)
downloadpkgsrc-e032d3f96bf923ac91c9e8f17449634a2f81bf02.tar.gz
Repair this file after the bulk-packge target was broken by DESTDIR support.
The problem is that bulk-package assumed that the package would be installed as well as built. When doing DESTDIR builds, make sure we still install the built packages.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/bsd.bulk-pkg.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk
index 4cf2e0cdafd..346a82e32ea 100644
--- a/mk/bulk/bsd.bulk-pkg.mk
+++ b/mk/bulk/bsd.bulk-pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.bulk-pkg.mk,v 1.149 2008/02/07 21:36:13 rillig Exp $
+# $NetBSD: bsd.bulk-pkg.mk,v 1.150 2010/02/27 03:37:58 dmcmahill Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
@@ -89,6 +89,11 @@ BULK_ID?= .${MACHINE_ARCH}
BULK_ID?=
.endif
+.if ${_USE_DESTDIR} != "no"
+_PACKAGE_TARGET= package package-install
+.else
+_PACKAGE_TARGET= package
+.endif
#
# Package-specific files
#
@@ -432,7 +437,7 @@ bulk-package:
done ;\
fi ;\
${ECHO_MSG} ${MAKE} package '(${PKGNAME})' 2>&1 ; \
- ${DO} ${RECURSIVE_MAKE} ${MAKEFLAGS} package; \
+ ${DO} ${RECURSIVE_MAKE} ${MAKEFLAGS} ${_PACKAGE_TARGET};\
${ECHO} ""; \
${ECHO} "===> Warnings from the wrapper log (sorted):"; \
${GREP} "^WARNING" ${WRKLOG} | ${SORT} -u | ${TO_HTML}; \