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
This commit is contained in:
Simon J. Gerraty 2020-03-31 15:59:29 +00:00
parent 413c3db101
commit 64b522da27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359488

View File

@ -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