Add rules for building doc back into releases, conditionalized on NODOC.

Also clean up some of the comments at the top.  It's 12 o'clock, and
that is all.
This commit is contained in:
Jordan K. Hubbard 1997-05-24 20:15:13 +00:00
parent 2515353993
commit aeb6d603ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26103

View File

@ -1,19 +1,17 @@
# $Id: Makefile,v 1.292 1997/04/25 09:11:50 jkh Exp $
# $Id: Makefile,v 1.293 1997/05/03 12:14:21 danny Exp $
#
# How to roll a release:
# make release CHROOTDIR=/some/dir BUILDNAME=somename [ RELEASETAG=tag ]
#
# make release CHROOTDIR=<lots of disk> [ RELEASETAG=something ]
# Where "/some/dir" is the pathname of a directory on a some
# filesystem with at least 600MB of free space, "somename" is what
# you want the release to call itself and, optionally, which CVS "tag"
# name should be used when checking out the sources to build the release
# (default is HEAD).
#
# As far as I know, this will roll everything nicely into the "stage"
# directory. I still need to write the two rules to move that into
# the "cdrom" and "ftp" directories.
# I also need to "make ports" and install those, but I'm not going to do
# that on a 14.4 line just yet...
#
# please note: the vn driver has to be compiled into your kernel,
# Please note: the vn driver must also be compiled into your kernel,
# otherwise the target 'release.8' and possibly others will fail.
#
# SET THIS !!!
# Set these, release builder!
#BUILDNAME=3.0-970302-SNAP
#CHROOTDIR=/junk/release
# If this is a RELEASE, then set
@ -32,7 +30,7 @@ KERNELS?= GENERIC
# (another "s" for "source" will be prepended).
EXTRA_SRC+= usr.sbin/sendmail/cf smailcf
BOOT1= etc/protocols etc/sysconfig
BOOT1= etc/protocols etc/rc.conf
# mountpoint for filesystems.
MNT= /mnt
@ -126,6 +124,9 @@ rerelease release:
.if !defined(NOPORTS)
cd ${CHROOTDIR}/usr && rm -rf ports && cvs -d ${CVSROOT} co -P ports
.endif
.if !defined(NODOC)
cd ${CHROOTDIR}/usr && rm -rf doc && cvs -d ${CVSROOT} co -P doc
.endif
.endif
.if make(rerelease)
.if !defined(RELEASENOUPDATE)
@ -137,6 +138,9 @@ rerelease release:
.if !defined(NOPORTS)
cd ${CHROOTDIR}/usr/ports && cvs -q update -P -d
.endif
.if !defined(NODOC)
cd ${CHROOTDIR}/usr/doc && cvs -q update -P -d
.endif
.endif
.endif
( cd ${CHROOTDIR}/usr/src/sys/conf && \
@ -176,6 +180,9 @@ rerelease release:
.endif
.if make(rerelease)
echo "make all install" >> ${CHROOTDIR}/mk
.endif
.if !defined(NODOC)
echo "cd /usr/doc && make all install" >> ${CHROOTDIR}/mk
.endif
echo "cd /usr/src/release/sysinstall" >> ${CHROOTDIR}/mk
echo "make obj" >> ${CHROOTDIR}/mk