Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 2020 01:05:12 +0000 (UTC)
From:      "Simon J. Gerraty" <sjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r359912 - stable/12/share/mk
Message-ID:  <202004140105.03E15Cp3015538@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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