From a7702e998f0ab8f6bee0ecaf57520307ec7dd458 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 29 Jul 2007 18:27:05 +0000 Subject: Allow the code to resolve the make path to deal with a strictly local path. E.g. running make as ./make now works. --- mk/bsd.prefs.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mk/bsd.prefs.mk') 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} -- cgit v1.2.3