diff options
author | joerg <joerg@pkgsrc.org> | 2007-07-29 18:27:05 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-07-29 18:27:05 +0000 |
commit | a7702e998f0ab8f6bee0ecaf57520307ec7dd458 (patch) | |
tree | 7df00c0aea14abcaa1293ae3db874bb8f6563686 | |
parent | e40571f70c3a5dd3489e27a854ad8c7f7d327b6e (diff) | |
download | pkgsrc-a7702e998f0ab8f6bee0ecaf57520307ec7dd458.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.
-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} |