Source-Changes-HG archive

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

[src/trunk]: src/distrib/newsmips Add "release" targets.



details:   https://anonhg.NetBSD.org/src/rev/44a32d3a4dd5
branches:  trunk
changeset: 522561:44a32d3a4dd5
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Feb 21 15:07:36 2002 +0000

description:
Add "release" targets.

diffstat:

 distrib/newsmips/Makefile                     |   4 ++--
 distrib/newsmips/floppies/Makefile            |   4 +++-
 distrib/newsmips/floppies/bootfloppy/Makefile |  13 ++++++++++++-
 distrib/newsmips/floppies/ramdisk/Makefile    |   4 +++-
 4 files changed, 20 insertions(+), 5 deletions(-)

diffs (70 lines):

diff -r 0cd2984f7014 -r 44a32d3a4dd5 distrib/newsmips/Makefile
--- a/distrib/newsmips/Makefile Thu Feb 21 14:21:49 2002 +0000
+++ b/distrib/newsmips/Makefile Thu Feb 21 15:07:36 2002 +0000
@@ -1,7 +1,7 @@
-#      $NetBSD: Makefile,v 1.1 2001/02/01 06:09:38 tsutsui Exp $
+#      $NetBSD: Makefile,v 1.2 2002/02/21 15:07:36 tsutsui Exp $
 
 SUBDIR= floppies
 
-#TARGETS+=     release
+TARGETS+=      release
 
 .include <bsd.subdir.mk>
diff -r 0cd2984f7014 -r 44a32d3a4dd5 distrib/newsmips/floppies/Makefile
--- a/distrib/newsmips/floppies/Makefile        Thu Feb 21 14:21:49 2002 +0000
+++ b/distrib/newsmips/floppies/Makefile        Thu Feb 21 15:07:36 2002 +0000
@@ -1,5 +1,7 @@
-#      $NetBSD: Makefile,v 1.1 2000/03/04 19:27:01 tsubai Exp $
+#      $NetBSD: Makefile,v 1.2 2002/02/21 15:07:38 tsutsui Exp $
 
 SUBDIR=        ramdisk bootfloppy
 
+TARGETS+=      release
+
 .include <bsd.subdir.mk>
diff -r 0cd2984f7014 -r 44a32d3a4dd5 distrib/newsmips/floppies/bootfloppy/Makefile
--- a/distrib/newsmips/floppies/bootfloppy/Makefile     Thu Feb 21 14:21:49 2002 +0000
+++ b/distrib/newsmips/floppies/bootfloppy/Makefile     Thu Feb 21 15:07:36 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2001/10/21 23:23:21 jmc Exp $
+#      $NetBSD: Makefile,v 1.4 2002/02/21 15:07:38 tsutsui Exp $
 
 TOP=           ${.CURDIR}/..
 
@@ -67,6 +67,17 @@
        gzip -9 netbsd.tmp
        mv netbsd.tmp.gz ${.TARGET}
 
+.ifndef RELEASEDIR
+release:
+       @echo set RELEASEDIR first!
+       @false
+.else
+release:
+       -mkdir -p ${RELEASEDIR}/installation/floppy
+       cp -p ${IMAGE} ${RELEASEDIR}/installation/floppy
+       gzip -c -9 ${IMAGE} > ${RELEASEDIR}/installation/floppy/${IMAGE}.gz
+.endif
+
 clean cleandir distclean:
        rm -f *.core ${IMAGE} ${CLEANFILES}
 
diff -r 0cd2984f7014 -r 44a32d3a4dd5 distrib/newsmips/floppies/ramdisk/Makefile
--- a/distrib/newsmips/floppies/ramdisk/Makefile        Thu Feb 21 14:21:49 2002 +0000
+++ b/distrib/newsmips/floppies/ramdisk/Makefile        Thu Feb 21 15:07:36 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.10 2002/02/03 16:35:11 lukem Exp $
+#      $NetBSD: Makefile,v 1.11 2002/02/21 15:07:38 tsutsui Exp $
 
 TOP=           ${.CURDIR}/..
 
@@ -55,6 +55,8 @@
 # turn off small gethostby* temporarily
 HACKOBJS:= ${HACKOBJS:Ngethost.o}
 
+release:
+
 clean cleandir distclean:
        if [ -f ${CBIN}.mk ]; then ${MAKE} -f ${CBIN}.mk clean; fi; \
        rm -f ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache



Home | Main Index | Thread Index | Old Index