Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2018 20:06:03 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330127 - head/share/mk
Message-ID:  <201802282006.w1SK63hY019723@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Wed Feb 28 20:06:03 2018
New Revision: 330127
URL: https://svnweb.freebsd.org/changeset/base/330127

Log:
  Allow overriding .MAKE.MAKEFILE_PREFERENCE.
  
  This will be utilized by Ports tools to avoid some extra
  stat(2) calls.
  
  MFC after:	3 days

Modified:
  head/share/mk/sys.mk

Modified: head/share/mk/sys.mk
==============================================================================
--- head/share/mk/sys.mk	Wed Feb 28 19:08:52 2018	(r330126)
+++ head/share/mk/sys.mk	Wed Feb 28 20:06:03 2018	(r330127)
@@ -314,7 +314,8 @@ SHELL=	${__MAKE_SHELL}
 .MAKE.EXPAND_VARIABLES= yes
 
 # Tell bmake the makefile preference
-.MAKE.MAKEFILE_PREFERENCE= BSDmakefile makefile Makefile
+MAKEFILE_PREFERENCE?= BSDmakefile makefile Makefile
+.MAKE.MAKEFILE_PREFERENCE= ${MAKEFILE_PREFERENCE}
 
 # Tell bmake to always pass job tokens, regardless of target depending on
 # .MAKE or looking like ${MAKE}/${.MAKE}/$(MAKE)/$(.MAKE)/make.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802282006.w1SK63hY019723>