Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib Add `release:' targets.



details:   https://anonhg.NetBSD.org/src/rev/d573c822cdba
branches:  trunk
changeset: 477256:d573c822cdba
user:      pk <pk%NetBSD.org@localhost>
date:      Mon Oct 18 20:13:55 1999 +0000

description:
Add `release:' targets.

diffstat:

 distrib/miniroot/Makefile      |  16 ++++++++++++++--
 distrib/sparc/bootfs/Makefile  |  12 +++++++++++-
 distrib/sparc/ramdisk/Makefile |  12 +++++++++++-
 3 files changed, 36 insertions(+), 4 deletions(-)

diffs (89 lines):

diff -r 5364f4a88f00 -r d573c822cdba distrib/miniroot/Makefile
--- a/distrib/miniroot/Makefile Mon Oct 18 19:52:24 1999 +0000
+++ b/distrib/miniroot/Makefile Mon Oct 18 20:13:55 1999 +0000
@@ -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 @@
 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}: ${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>
diff -r 5364f4a88f00 -r d573c822cdba distrib/sparc/bootfs/Makefile
--- a/distrib/sparc/bootfs/Makefile     Mon Oct 18 19:52:24 1999 +0000
+++ b/distrib/sparc/bootfs/Makefile     Mon Oct 18 20:13:55 1999 +0000
@@ -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 @@
 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>
diff -r 5364f4a88f00 -r d573c822cdba distrib/sparc/ramdisk/Makefile
--- a/distrib/sparc/ramdisk/Makefile    Mon Oct 18 19:52:24 1999 +0000
+++ b/distrib/sparc/ramdisk/Makefile    Mon Oct 18 20:13:55 1999 +0000
@@ -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 @@
 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>



Home | Main Index | Thread Index | Old Index