svn commit: r359912 - stable/12/share/mk
Simon J. Gerraty
sjg at FreeBSD.org
Tue Apr 14 01:05:12 UTC 2020
Author: sjg
Date: Tue Apr 14 01:05:11 2020
New Revision: 359912
URL: https://svnweb.freebsd.org/changeset/base/359912
Log:
Include ${.CURDIR}/local.init.mk if it exists
This is handy for making local hacks to an app
(eg to build it as tool for non-BSD host)
without making a mess of the code base.
MFC of r359488
Reviewed by: bdrewery
Differential Revision: https://reviews.freebsd.org//D24101
Modified:
stable/12/share/mk/local.init.mk
Modified: stable/12/share/mk/local.init.mk
==============================================================================
--- stable/12/share/mk/local.init.mk Tue Apr 14 00:57:50 2020 (r359911)
+++ stable/12/share/mk/local.init.mk Tue Apr 14 01:05:11 2020 (r359912)
@@ -1,5 +1,8 @@
# $FreeBSD$
+.if !target(__${_this}__)
+__${_this}__:
+
.if ${.MAKE.MODE:Mmeta*} != ""
.if !empty(SUBDIR) && !defined(LIB) && !defined(PROG) && ${.MAKE.MAKEFILES:M*bsd.prog.mk} == ""
.if ${.MAKE.MODE:Mleaf*} != ""
@@ -33,3 +36,5 @@ CFLAGS+= ${HOST_CFLAGS}
.endif
.-include "src.init.mk"
+.-include "${.CURDIR}/local.init.mk"
+.endif
More information about the svn-src-stable
mailing list