Author: sjg
Date: Tue Mar 31 15:59:29 2020
New Revision: 359488
URL: https://svnweb.freebsd.org/changeset/base/359488
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.
Reviewed by: bdrewery
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org//D24101
Modified:
head/share/mk/local.init.mk
Modified: head/share/mk/local.init.mk
==============================================================================
--- head/share/mk/local.init.mk Tue Mar 31 15:54:54 2020 (r359487)
+++ head/share/mk/local.init.mk Tue Mar 31 15:59:29 2020 (r359488)
@@ -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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"