diff options
author | rillig <rillig> | 2007-08-13 07:42:10 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-08-13 07:42:10 +0000 |
commit | b638f73fd277d2095c89120def9225f4bddb87f1 (patch) | |
tree | 44de3bb0b4c90cb2ee5027ffc84d50d26cf65fc8 /mk/bsd.prefs.mk | |
parent | 0cbcf3786a910f264952baeeafea8f94c122ac71 (diff) | |
download | pkgsrc-b638f73fd277d2095c89120def9225f4bddb87f1.tar.gz |
Fixed joerg's failed try to support invoking make(1) as ./make or similar.
It had failed in the devel/ directory, since devel/bmake exists there.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 5bf5c2ca15c..35e0243fd8c 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.261 2007/08/02 18:19:31 joerg Exp $ +# $NetBSD: bsd.prefs.mk,v 1.262 2007/08/13 07:42:10 rillig Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -26,15 +26,16 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin # Expand MAKE to a full path. .if !defined(_MAKE) _MAKE:= ${MAKE} +# allow for MAKE=./make and similar. +. if empty(_MAKE:M/*) && !empty(_MAKE:M*/*) && defined(PWD) && exists(${PWD}/${MAKE}) +_MAKE:= ${PWD}/${MAKE} +. endif . for _dir_ in ${PATH:C/\:/ /g} . if empty(_MAKE:M/*) . if exists(${_dir_}/${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} |