summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-11-13 21:05:28 +0000
committerphk <phk@FreeBSD.org>1994-11-13 21:05:28 +0000
commit94e55d40f9b03d80327a548eff1ab752ba9a6833 (patch)
tree1cbec4b01474ea978c3d3b8b85c006c6c1f77906 /sys/conf/kmod.mk
parent48bf3d3d0e0fc7b65115f13d2b9b422783fb9e41 (diff)
downloadFreeBSD-src-94e55d40f9b03d80327a548eff1ab752ba9a6833.zip
FreeBSD-src-94e55d40f9b03d80327a548eff1ab752ba9a6833.tar.gz
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.
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r--sys/conf/kmod.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index a796dd6..ae2e07c 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -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
OpenPOWER on IntegriCloud