diff options
author | joerg <joerg@pkgsrc.org> | 2009-05-17 23:44:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-05-17 23:44:53 +0000 |
commit | bac1d48f7230f5a082a6489387faca029e694684 (patch) | |
tree | 10e413a145fdca2d1819a1bc159a8ce981f271f2 /mk/bsd.prefs.mk | |
parent | c023565d382ec03f4c79f122afafbc0358431c7a (diff) | |
download | pkgsrc-bac1d48f7230f5a082a6489387faca029e694684.tar.gz |
Sanity check that USE_DESTDIR is either yes or no after downgrading
USE_DESTDIR=full. This makes setting USE_DESTDIR=full on the command
line an explicit error as side effect.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 7c5002c80d1..d7467fc6145 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.291 2009/05/09 14:59:08 joerg Exp $ +# $NetBSD: bsd.prefs.mk,v 1.292 2009/05/17 23:44:53 joerg Exp $ # # This file includes the mk.conf file, which contains the user settings. # @@ -387,6 +387,9 @@ USE_DESTDIR:= yes .endif .if empty(PKG_DESTDIR_SUPPORT) || empty(USE_DESTDIR:M[Yy][Ee][Ss]) +. if empty(USE_DESTDIR:M[Nn][Oo]) +PKG_FAIL_REASON+= "USE_DESTDIR must be either \`\`yes'' or \`\`no''" +. endif _USE_DESTDIR= no .elif ${PKG_DESTDIR_SUPPORT} == "user-destdir" _USE_DESTDIR= user-destdir |