pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Allow the code to resolve the make path to deal wit...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0c09ee17a28a
branches: trunk
changeset: 531406:0c09ee17a28a
user: joerg <joerg%pkgsrc.org@localhost>
date: Sun Jul 29 18:27:05 2007 +0000
description:
Allow the code to resolve the make path to deal with a strictly
local path. E.g. running make as ./make now works.
diffstat:
mk/bsd.prefs.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r a20c9a7b8755 -r 0c09ee17a28a mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk Sun Jul 29 17:39:31 2007 +0000
+++ b/mk/bsd.prefs.mk Sun Jul 29 18:27:05 2007 +0000
@@ -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:= ${_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}
Home |
Main Index |
Thread Index |
Old Index