diff options
author | joerg <joerg> | 2006-10-09 11:59:08 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-10-09 11:59:08 +0000 |
commit | 425c7ce9c7743b6870d601017456d062add968cb (patch) | |
tree | 8269f16bb8219adc21f8a54b0affa344ebae175b /mk/install | |
parent | 01d43d7d2a9434117dc642a3ef5bc01b3a33c810 (diff) | |
download | pkgsrc-425c7ce9c7743b6870d601017456d062add968cb.tar.gz |
Add variable to control whether the install target is run as root.
Diffstat (limited to 'mk/install')
-rw-r--r-- | mk/install/install.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/install/install.mk b/mk/install/install.mk index 239e0d806ee..a09fde24288 100644 --- a/mk/install/install.mk +++ b/mk/install/install.mk @@ -1,4 +1,4 @@ -# $NetBSD: install.mk,v 1.20 2006/10/06 20:13:10 rillig Exp $ +# $NetBSD: install.mk,v 1.21 2006/10/09 11:59:08 joerg Exp $ ###################################################################### ### install (PUBLIC) @@ -163,7 +163,11 @@ privileged-install-hook: check-interpreter .endif .PHONY: install-all su-install-all +. if !empty(_MAKE_INSTALL_AS_ROOT:M[Yy][Ee][Ss]) install-all: su-target +. else +install-all: su-install-all +. endif su-install-all: ${_INSTALL_ALL_TARGETS} ###################################################################### |