Make ../Makefile.inc handling more consistant to prevent multiple includes
when certain .mk files include other .mk files. This will remove the need for multiple include protection in some other makefiles around the tree (and helps some elf conditionals).
This commit is contained in:
parent
57eec98d62
commit
e0301e5d4b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38183
@ -1,5 +1,5 @@
|
||||
# from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
|
||||
# $Id: bsd.doc.mk,v 1.44 1998/05/06 18:44:00 bde Exp $
|
||||
# $Id: bsd.doc.mk,v 1.45 1998/08/02 13:50:23 bde Exp $
|
||||
#
|
||||
# The include file <bsd.doc.mk> handles installing BSD troff documents.
|
||||
#
|
||||
@ -14,9 +14,12 @@
|
||||
#
|
||||
# [incomplete]
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
PRINTERDEVICE?= ascii
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $Id: bsd.info.mk,v 1.49 1998/03/12 20:02:09 eivind Exp $
|
||||
# $Id: bsd.info.mk,v 1.50 1998/05/06 18:44:01 bde Exp $
|
||||
#
|
||||
# The include file <bsd.info.mk> handles installing GNU (tech)info files.
|
||||
# Texinfo is a documentation system that uses a single source
|
||||
@ -76,9 +76,12 @@
|
||||
#
|
||||
# bsd.obj.mk: cleandir and obj
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
MAKEINFO?= makeinfo
|
||||
MAKEINFOFLAGS+= --no-split # simplify some things, e.g., compression
|
||||
|
@ -1,5 +1,5 @@
|
||||
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.kmod.mk,v 1.49 1998/06/09 02:55:40 bde Exp $
|
||||
# $Id: bsd.kmod.mk,v 1.50 1998/07/29 14:19:48 bde Exp $
|
||||
#
|
||||
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
|
||||
#
|
||||
@ -81,9 +81,12 @@
|
||||
MODLOAD?= /sbin/modload
|
||||
MODUNLOAD?= /sbin/modunload
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S
|
||||
|
||||
|
@ -1,10 +1,13 @@
|
||||
# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
|
||||
# $Id: bsd.lib.mk,v 1.73 1998/06/04 15:15:38 peter Exp $
|
||||
# $Id: bsd.lib.mk,v 1.74 1998/06/05 18:38:54 dt Exp $
|
||||
#
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# Default executable format
|
||||
.if ${MACHINE} == "alpha"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $Id: bsd.man.mk,v 1.26 1997/11/09 15:03:14 wosch Exp $
|
||||
# $Id: bsd.man.mk,v 1.27 1998/04/27 15:08:07 bde Exp $
|
||||
#
|
||||
# The include file <bsd.man.mk> handles installing manual pages and
|
||||
# their links.
|
||||
@ -52,6 +52,13 @@
|
||||
# Install the manual pages and their links.
|
||||
#
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
MANSRC?= ${.CURDIR}
|
||||
MINSTALL= ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
|
||||
|
||||
|
@ -1,9 +1,12 @@
|
||||
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.prog.mk,v 1.74 1998/05/15 09:34:48 bde Exp $
|
||||
# $Id: bsd.prog.mk,v 1.75 1998/06/05 18:38:54 dt Exp $
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# Default executable format
|
||||
BINFORMAT?= aout
|
||||
|
@ -1,7 +1,7 @@
|
||||
# bsd.sgml.mk - 8 Sep 1995 John Fieber
|
||||
# This file is in the public domain.
|
||||
#
|
||||
# $Id: bsd.sgml.mk,v 1.24 1998/05/06 18:44:04 bde Exp $
|
||||
# $Id: bsd.sgml.mk,v 1.25 1998/05/18 16:57:10 wosch Exp $
|
||||
#
|
||||
# The include file <bsd.sgml.mk> handles installing sgml documents.
|
||||
#
|
||||
@ -51,9 +51,12 @@
|
||||
#
|
||||
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# FORMATS indicates which output formats will be generated. See
|
||||
# the sgmlfmt(1) man page for a list of valid formats.
|
||||
|
@ -1,5 +1,5 @@
|
||||
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
|
||||
# $Id: bsd.subdir.mk,v 1.23 1998/03/29 01:10:09 eivind Exp $
|
||||
# $Id: bsd.subdir.mk,v 1.24 1998/05/06 16:53:53 wosch Exp $
|
||||
#
|
||||
# The include file <bsd.subdir.mk> contains the default targets
|
||||
# for building subdirectories.
|
||||
@ -36,6 +36,12 @@
|
||||
# obj, objlink, realinstall, regress, tags
|
||||
#
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.MAIN: all
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.kmod.mk,v 1.49 1998/06/09 02:55:40 bde Exp $
|
||||
# $Id: bsd.kmod.mk,v 1.50 1998/07/29 14:19:48 bde Exp $
|
||||
#
|
||||
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
|
||||
#
|
||||
@ -81,9 +81,12 @@
|
||||
MODLOAD?= /sbin/modload
|
||||
MODUNLOAD?= /sbin/modunload
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user