Change the distribute targets so that a given item in our source tree

can place itself into n distributions, where n >= 1.
This commit is contained in:
Jordan K. Hubbard 1997-06-21 15:40:34 +00:00
parent c1bae21c1e
commit 398ac038db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26760
8 changed files with 32 additions and 17 deletions

View File

@ -1,5 +1,5 @@
# from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
# $Id: bsd.doc.mk,v 1.36 1997/04/04 01:25:32 mpp Exp $
# $Id: bsd.doc.mk,v 1.37 1997/05/11 10:42:00 wosch Exp $
#
# The include file <bsd.doc.mk> handles installing BSD troff documents.
# <bsd.prog.mk> includes the include files <bsd.dep.mk> and <bsd.obj.mk>.
@ -124,7 +124,9 @@ afterinstall:
DISTRIBUTION?= doc
.if !target(distribute)
distribute:
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
spell: ${SRCS}

View File

@ -1,4 +1,4 @@
# $Id: bsd.info.mk,v 1.38 1997/04/30 17:03:09 bde Exp $
# $Id: bsd.info.mk,v 1.39 1997/05/01 01:15:55 jkh Exp $
#
# The include file <bsd.info.mk> handles installing GNU (tech)info files.
# Texinfo is a documentation system that uses a single source
@ -141,8 +141,9 @@ DISTRIBUTION= info
.if !target(distribute)
distribute: _SUBDIR
cd ${.CURDIR} ; \
$(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.if defined(SRCS)

View File

@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.kmod.mk,v 1.36 1997/05/06 14:29:56 dfr Exp $
# $Id: bsd.kmod.mk,v 1.37 1997/06/18 03:10:31 asami Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
@ -200,7 +200,9 @@ realinstall: beforeinstall
DISTRIBUTION?= bin
.if !target(distribute)
distribute: _SUBDIR
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.if defined(NOTAGS)

View File

@ -1,5 +1,5 @@
# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
# $Id: bsd.lib.mk,v 1.57 1997/05/23 17:50:35 dfr Exp $
# $Id: bsd.lib.mk,v 1.58 1997/06/18 03:39:34 asami Exp $
#
.if exists(${.CURDIR}/../Makefile.inc)
@ -245,7 +245,9 @@ afterinstall: realinstall
DISTRIBUTION?= bin
.if !target(distribute)
distribute: _SUBDIR
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.if !target(lint)

View File

@ -1,5 +1,5 @@
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.prog.mk,v 1.49 1997/04/23 18:47:42 bde Exp $
# $Id: bsd.prog.mk,v 1.50 1997/05/23 08:38:46 asami Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@ -112,7 +112,9 @@ afterinstall: realinstall
DISTRIBUTION?= bin
.if !target(distribute)
distribute: _SUBDIR
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.if !target(lint)

View File

@ -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.18 1997/05/11 00:32:14 wosch Exp $
# $Id: bsd.sgml.mk,v 1.19 1997/05/25 12:43:06 wosch Exp $
#
# The include file <bsd.sgml.mk> handles installing sgml documents.
# <bsd.prog.mk> includes the file named "../Makefile.inc" if it exists,
@ -123,7 +123,9 @@ spell: ${SRCS}
.if !target(distribute)
distribute:
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
# For each FORMATS type, define a build, install, clean and print target.

View File

@ -1,5 +1,5 @@
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
# $Id: bsd.subdir.mk,v 1.16 1997/03/31 05:30:16 scrappy Exp $
# $Id: bsd.subdir.mk,v 1.17 1997/04/13 06:44:24 jkh Exp $
#
# The include file <bsd.subdir.mk> contains the default targets
# for building subdirectories. It has the same seven targets
@ -104,5 +104,7 @@ afterdistribute:
.endif
.if !target(distribute)
distribute: _SUBDIRUSE
cd ${.CURDIR} ; ${MAKE} afterdistribute DESTDIR=${DISTDIR}/${DISTRIBUTION}
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; ${MAKE} afterdistribute DESTDIR=${DISTDIR}/${dist}
.endfor
.endif

View File

@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.kmod.mk,v 1.36 1997/05/06 14:29:56 dfr Exp $
# $Id: bsd.kmod.mk,v 1.37 1997/06/18 03:10:31 asami Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
@ -200,7 +200,9 @@ realinstall: beforeinstall
DISTRIBUTION?= bin
.if !target(distribute)
distribute: _SUBDIR
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.if defined(NOTAGS)