From: John Marino Date: Thu, 8 Nov 2012 10:46:55 +0000 (+0100) Subject: bsd.init.mk: Establish compatibility with FreeBSD makefiles X-Git-Tag: v3.4.0rc~876 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/8edad6a26ff69b719a9a896754cedcbbde2974eb bsd.init.mk: Establish compatibility with FreeBSD makefiles FreeBSD changed NOMAN to NO_MAN and NOSHARED to NO_SHARED. Rather than follow suit, establish NO_MAN and NO_SHARED as aliases for the DragonFly versions. If both are defined, the DragonFly version takes precedence. These were put in bsd.init.mk because they have to be loaded after the makefile being processed but before bsd.prog.mk, bsd.lib.mk, etc. --- diff --git a/share/mk/bsd.init.mk b/share/mk/bsd.init.mk index 65ee05ea17..5fa719f246 100644 --- a/share/mk/bsd.init.mk +++ b/share/mk/bsd.init.mk @@ -1,5 +1,4 @@ # $FreeBSD: src/share/mk/bsd.init.mk,v 1.1.2.1 2002/07/17 19:08:23 ru Exp $ -# $DragonFly: src/share/mk/bsd.init.mk,v 1.7 2005/04/12 23:35:37 okumoto Exp $ # The include file includes ../Makefile.inc and # ; this is used at the top of all files @@ -17,3 +16,12 @@ ____: .MAIN: all .endif # !target(____) + +# Establish compatibility with FreeBSD Makefiles +.if defined(NO_SHARED) && !defined(NOSHARED) +NOSHARED= ${NO_SHARED} +.endif + +.if defined(NO_MAN) && !defined(NOMAN) +NOMAN= ${NO_MAN} +.endif