Add a new "distribute" target. This is a variant of install, which will
put the stuff into the right "distribution". As default things end up in "bindist". Normal (ie: most) makefiles know naught of this. More commits will follow, which will direct various parts of the tree into the distribution we want them in. Some of the grief of being release-engineer is supposed to go away with this.
This commit is contained in:
parent
2a7b3781fc
commit
55ff8fb132
@ -1,5 +1,5 @@
|
||||
# from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
|
||||
# $Id: bsd.doc.mk,v 1.2 1994/08/04 21:09:22 wollman Exp $
|
||||
# $Id: bsd.doc.mk,v 1.3 1994/08/28 15:37:39 bde Exp $
|
||||
|
||||
PRINTER?= ps
|
||||
|
||||
@ -76,6 +76,12 @@ install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DOC}.* \
|
||||
${DESTDIR}${BINDIR}/${VOLUME}
|
||||
|
||||
DISTRIBUTION?= bindist
|
||||
.if !target(distribute)
|
||||
distribute:
|
||||
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${RELEASEDIR}/${DISTRIBUTION} SHARED=copies
|
||||
.endif
|
||||
|
||||
spell: ${SRCS}
|
||||
(cd ${.CURDIR}; spell ${SRCS} ) | sort | \
|
||||
comm -23 - ${.CURDIR}/spell.ok > ${DOC}.spell
|
||||
|
@ -1,5 +1,5 @@
|
||||
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.kmod.mk,v 1.2 1994/09/21 03:49:59 wollman Exp $
|
||||
# $Id: bsd.kmod.mk,v 1.3 1994/09/26 22:34:04 wollman Exp $
|
||||
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
@ -105,6 +105,12 @@ afterinstall: realinstall
|
||||
realinstall: beforeinstall
|
||||
.endif
|
||||
|
||||
DISTRIBUTION?= bindist
|
||||
.if !target(distribute)
|
||||
distribute:
|
||||
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${RELEASEDIR}/${DISTRIBUTION} SHARED=copies
|
||||
.endif
|
||||
|
||||
.if !target(obj)
|
||||
.if defined(NOOBJ)
|
||||
obj: _PROGSUBDIR
|
||||
|
@ -1,5 +1,5 @@
|
||||
# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
|
||||
# $Id: bsd.lib.mk,v 1.9 1994/09/18 22:22:32 wollman Exp $
|
||||
# $Id: bsd.lib.mk,v 1.10 1994/10/25 17:55:25 bde Exp $
|
||||
#
|
||||
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
@ -267,6 +267,12 @@ afterinstall: realinstall
|
||||
.endif
|
||||
.endif
|
||||
|
||||
DISTRIBUTION?= bindist
|
||||
.if !target(distribute)
|
||||
distribute:
|
||||
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${RELEASEDIR}/${DISTRIBUTION} SHARED=copies
|
||||
.endif
|
||||
|
||||
.if !target(lint)
|
||||
lint:
|
||||
.endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.prog.mk,v 1.10 1994/10/18 23:01:22 pst Exp $
|
||||
# $Id: bsd.prog.mk,v 1.11 1994/10/25 18:09:44 bde Exp $
|
||||
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
@ -203,6 +203,12 @@ afterinstall: realinstall
|
||||
realinstall: beforeinstall
|
||||
.endif
|
||||
|
||||
DISTRIBUTION?= bindist
|
||||
.if !target(distribute)
|
||||
distribute:
|
||||
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${RELEASEDIR}/${DISTRIBUTION} SHARED=copies
|
||||
.endif
|
||||
|
||||
.if !target(lint)
|
||||
lint: ${SRCS} _PROGSUBDIR
|
||||
.if defined(PROG)
|
||||
|
@ -1,5 +1,5 @@
|
||||
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
|
||||
# $Id: bsd.subdir.mk,v 1.3 1994/08/28 15:35:30 bde Exp $
|
||||
# $Id: bsd.subdir.mk,v 1.4 1994/09/16 14:30:25 jkh Exp $
|
||||
|
||||
.MAIN: all
|
||||
|
||||
@ -53,6 +53,16 @@ depend: _SUBDIRUSE
|
||||
maninstall: _SUBDIRUSE
|
||||
.endif
|
||||
|
||||
DISTRIBUTION?= bindist
|
||||
.if !target(afterdistribute)
|
||||
afterdistribute:
|
||||
.endif
|
||||
.if !target(distribute)
|
||||
distribute: _SUBDIRUSE
|
||||
cd ${.CURDIR} ; ${MAKE} afterdistribute DESTDIR=${RELEASEDIR}/${DISTRIBUTION}
|
||||
|
||||
.endif
|
||||
|
||||
.if !target(install)
|
||||
.if !target(beforeinstall)
|
||||
beforeinstall:
|
||||
|
@ -1,5 +1,5 @@
|
||||
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.kmod.mk,v 1.2 1994/09/21 03:49:59 wollman Exp $
|
||||
# $Id: bsd.kmod.mk,v 1.3 1994/09/26 22:34:04 wollman Exp $
|
||||
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
@ -105,6 +105,12 @@ afterinstall: realinstall
|
||||
realinstall: beforeinstall
|
||||
.endif
|
||||
|
||||
DISTRIBUTION?= bindist
|
||||
.if !target(distribute)
|
||||
distribute:
|
||||
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${RELEASEDIR}/${DISTRIBUTION} SHARED=copies
|
||||
.endif
|
||||
|
||||
.if !target(obj)
|
||||
.if defined(NOOBJ)
|
||||
obj: _PROGSUBDIR
|
||||
|
Loading…
x
Reference in New Issue
Block a user