Add `release:' targets.

This commit is contained in:
pk 1999-10-18 20:13:55 +00:00
parent e5bf8dc4d5
commit b06b87a810
3 changed files with 36 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.22 1999/07/18 07:22:36 abs Exp $
# $NetBSD: Makefile,v 1.23 1999/10/18 20:13:55 pk Exp $
.include <bsd.own.mk>
@ -29,6 +29,8 @@ DISKTYPEARG= -t ${DISKTYPE}
LISTS= ${.CURDIR}/list ${ARCHDIR}/list
CRUNCHCONF= ${CBIN}.conf
MTREE= ${.CURDIR}/mtree.conf
ICMD= ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} \
-o root -g wheel -m ${NONBINMODE}
.ifndef DESTDIR
all:
@ -67,10 +69,20 @@ ${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
make -f ${CBIN}.mk all
.ifndef RELEASEDIR
release:
@echo setenv RELEASEDIR first
@false
.else
release: $(IMAGE)
gzip -c -9 < $(.OBJDIR)/miniroot-${REV}.fs \
> $(RELEASEDIR)/installation/miniroot/miniroot-${REV}.fs.gz
.endif # RELEASEDIR check
.endif # DESTDIR check
clean cleandir distclean:
/bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \
${CBIN}.conf *.o *.cro *.c
.endif # DESTDIR check
.include <bsd.obj.mk>
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 1999/04/08 21:17:14 pk Exp $
# $NetBSD: Makefile,v 1.12 1999/10/18 20:13:56 pk Exp $
TOP= ${.CURDIR}/..
MINIROOT= ${.CURDIR}/../../miniroot
@ -70,4 +70,14 @@ depend install:
real-floppy:
dd if=${IMAGE} of=${FD_RDEV} bs=32k
.ifndef RELEASEDIR
release:
@echo setenv RELEASEDIR first
@false
.else
release: $(IMAGE)
gzip -c -9 < $(.OBJDIR)/boot-${REV}.fs \
> $(RELEASEDIR)/installation/bootfs/boot-${REV}.fs.gz
.endif # RELEASEDIR check
.include <bsd.obj.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 1999/06/27 12:56:00 mrg Exp $
# $NetBSD: Makefile,v 1.12 1999/10/18 20:13:56 pk Exp $
TOP= ${.CURDIR}/..
MINIROOT= ${.CURDIR}/../../miniroot
@ -66,5 +66,15 @@ HACKSRC=${TOP}/../utils/libhack
clean cleandir distclean:
/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
.ifndef RELEASEDIR
release:
@echo setenv RELEASEDIR first
@false
.else
release: $(IMAGE)
gzip -c -9 < $(.OBJDIR)/ramdisk-${REV}.fs \
> $(RELEASEDIR)/installation/bootfs/ramdisk-${REV}.fs.gz
.endif # RELEASEDIR check
.include <bsd.obj.mk>
.include <bsd.subdir.mk>