diff options
author | joerg <joerg@pkgsrc.org> | 2006-10-09 11:59:08 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-10-09 11:59:08 +0000 |
commit | a8e70089029ef60b4f74d3451dfa967cab20e71e (patch) | |
tree | 8269f16bb8219adc21f8a54b0affa344ebae175b /mk/install/install.mk | |
parent | 51fd0bdbade77b783bd73c2056c44129cf0e051d (diff) | |
download | pkgsrc-a8e70089029ef60b4f74d3451dfa967cab20e71e.tar.gz |
Add variable to control whether the install target is run as root.
Diffstat (limited to 'mk/install/install.mk')
-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} ###################################################################### |