summaryrefslogtreecommitdiff
path: root/mk/package/package.mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-10-09 11:44:06 +0000
committerjoerg <joerg@pkgsrc.org>2006-10-09 11:44:06 +0000
commit977a821a8f7eb4013b29e47f7fb3c63850d539d3 (patch)
tree81c92137461e47b6011bb2bbce71f9efb874c327 /mk/package/package.mk
parentc0ec39a99b04626a7254147f7da70ee37804f2b6 (diff)
downloadpkgsrc-977a821a8f7eb4013b29e47f7fb3c63850d539d3.tar.gz
Add two variables to control whether make package and make clean
are run with elevated privileges. Remove MAKE_PACKAGE_AS_ROOT for now, since it is not sure whether the functionality in the current form will stay and developers should spend time on the destdir support instead.
Diffstat (limited to 'mk/package/package.mk')
-rw-r--r--mk/package/package.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/package/package.mk b/mk/package/package.mk
index 8b4920b4d13..d3a9ca63530 100644
--- a/mk/package/package.mk
+++ b/mk/package/package.mk
@@ -1,4 +1,4 @@
-# $NetBSD: package.mk,v 1.16 2006/10/08 20:31:38 rillig Exp $
+# $NetBSD: package.mk,v 1.17 2006/10/09 11:44:07 joerg Exp $
######################################################################
### package (PUBLIC)
@@ -83,12 +83,12 @@ _PACKAGE_ALL_TARGETS+= package-warnings
_PACKAGE_ALL_TARGETS+= error-check
.PHONY: package-all su-package-all
-.if !empty(MAKE_PACKAGE_AS_ROOT:M[Yy][Ee][Ss])
+.if !empty(_MAKE_PACKAGE_AS_ROOT:M[Yy][Ee][Ss])
package-all: su-target
-su-package-all: ${_PACKAGE_ALL_TARGETS}
.else
-package-all: ${_PACKAGE_ALL_TARGETS}
+package-all: su-package-all
.endif
+su-package-all: ${_PACKAGE_ALL_TARGETS}
######################################################################
### package-check-installed (PRIVATE, override)