Provide some more automation in the "make release" process. Also build

and install:
 o INSTALL and INSTALL_TINY kernels (for boot floppy images)
 o GENERIC_TINY kernel
 o Boot floppy images
Ideas borrowed from etc/etc.sun3/ setup.
This commit is contained in:
he 1999-11-09 00:22:39 +00:00
parent 83a7edec11
commit eafd8f707f
5 changed files with 41 additions and 8 deletions

View File

@ -1,5 +1,7 @@
# $NetBSD: Makefile,v 1.9 1999/02/01 21:55:31 he Exp $
# $NetBSD: Makefile,v 1.10 1999/11/09 00:22:41 he Exp $
SUBDIR= ramdisk fdset bootfloppy-big bootfloppy-tiny
TARGETS+=release
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.18 1999/03/23 18:05:46 drochner Exp $
# $NetBSD: Makefile.inc,v 1.19 1999/11/09 00:22:40 he Exp $
# TOP is assumed to be defined by Makefile including this one.
@ -64,6 +64,11 @@ netbsd.ram.gz: ${KERN} ${RAMDISK}
gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET}
release:
-mkdir -p ${RELEASEDIR}/installation/floppies
cp -p ${IMAGE} ${RELEASEDIR}/installation/floppies
gzip <${IMAGE} >${RELEASEDIR}/installation/floppies/${IMAGE}.gz
clean cleandir distclean:
/bin/rm -f *.core ${IMAGE} ${CLEANFILES}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.6 1999/07/02 22:00:17 fvdl Exp $
# $NetBSD: Makefile.inc,v 1.7 1999/11/09 00:22:40 he Exp $
# TOP is assumed to be defined by Makefile including this one.
@ -105,6 +105,13 @@ boot: ${BOOTCODE}
cp ${BOOTCODE} boot
strip boot
release:
-mkdir -p ${RELEASEDIR}/installation/floppies
cp -p ${BASENAME}?.fs ${RELEASEDIR}/installation/floppies
for f in ${RELEASEDIR}/installation/floppies/${BASENAME}?.fs; do \
gzip <$$f >$$f.gz; \
done
clean cleandir distclean:
/bin/rm -f *.core ${CLEANFILES} ${BASENAME}?.fs

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 1999/10/25 16:44:53 drochner Exp $
# $NetBSD: Makefile,v 1.18 1999/11/09 00:22:41 he Exp $
TOP= ${.CURDIR}/..
WARNS=1
@ -74,6 +74,7 @@ HACKSRC=${TOP}/../../utils/libhack
# turn off small gethostby* temporarily
HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o setlocale.o yplib.o
release:
clean cleandir distclean:
/bin/rm -f ${AUXCLEAN} *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c

View File

@ -1,8 +1,26 @@
# $NetBSD: Makefile.inc,v 1.12 1999/02/05 03:01:52 cjs Exp $
# $NetBSD: Makefile.inc,v 1.13 1999/11/09 00:22:39 he Exp $
#
# etc.i386/Makefile.inc -- i386-specific etc Makefile targets
#
# Set this for any kernels beyond GENERIC you want to include
# in the distribution.
#EXTRA_KERNELS+=
# These are packaged and distributed
EXTRA_KERNELS+= GENERIC_TINY
# These are for use by the bootfloppy construction tools
INST_KERNELS= INSTALL INSTALL_TINY
# Build the INST_KERNELS and the boot floppies and install them
snap_md_post:
.for k in ${INST_KERNELS}
cd ${KERNCONFDIR} && config \
-b ${KERNOBJDIR}/${k} -s ${KERNSRCDIR} ${k}
.ifndef UPDATE
cd ${KERNOBJDIR}/${k} && ${MAKE} clean
.endif
cd ${KERNOBJDIR}/${k} && ${MAKE} depend && ${MAKE} ${_J}
.endfor
.ifndef UPDATE
cd ${.CURDIR}/../distrib/i386/floppies && ${MAKE} clean
.endif
cd ${.CURDIR}/../distrib/i386/floppies && \
${MAKE} depend && ${MAKE} ${_J} && ${MAKE} release