diff options
author | joerg <joerg> | 2007-07-29 18:27:05 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-07-29 18:27:05 +0000 |
commit | ddbc505fd0424c737e69f17e31fb808323dd2a3b (patch) | |
tree | 7df00c0aea14abcaa1293ae3db874bb8f6563686 /mk | |
parent | b9a7a6df6b242d133dd6a376c7c8a250d56f0d17 (diff) | |
download | pkgsrc-ddbc505fd0424c737e69f17e31fb808323dd2a3b.tar.gz |
Allow the code to resolve the make path to deal with a strictly
local path. E.g. running make as ./make now works.
Diffstat (limited to '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 90b7cb062f7..d8e6c9939d8 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.255 2007/07/29 13:17:57 joerg Exp $ +# $NetBSD: bsd.prefs.mk,v 1.256 2007/07/29 18:27:05 joerg Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -32,6 +32,9 @@ _MAKE:= ${MAKE} _MAKE:= ${_dir_}/${MAKE} . endif . endif +. if empty(_MAKE:M/*) && defined(PWD) && exists(${PWD}/${MAKE}) +_MAKE:= ${_PWD_}/${MAKE} +. endif . endfor . if !empty(_MAKE:M/*) MAKEFLAGS+= _MAKE=${_MAKE:Q} |