diff --git a/distrib/newsmips/Makefile b/distrib/newsmips/Makefile index d5445e29c366..e1776280398d 100644 --- a/distrib/newsmips/Makefile +++ b/distrib/newsmips/Makefile @@ -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 diff --git a/distrib/newsmips/floppies/Makefile b/distrib/newsmips/floppies/Makefile index 0aeab604a410..cfddb4e23b65 100644 --- a/distrib/newsmips/floppies/Makefile +++ b/distrib/newsmips/floppies/Makefile @@ -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 diff --git a/distrib/newsmips/floppies/bootfloppy/Makefile b/distrib/newsmips/floppies/bootfloppy/Makefile index 86f491bd6d10..da9e785d8b74 100644 --- a/distrib/newsmips/floppies/bootfloppy/Makefile +++ b/distrib/newsmips/floppies/bootfloppy/Makefile @@ -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 @@ netbsd.ram.gz: ${KERN} ${RAMDISK} 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 --git a/distrib/newsmips/floppies/ramdisk/Makefile b/distrib/newsmips/floppies/ramdisk/Makefile index f42682e7e8ed..730d13128f35 100644 --- a/distrib/newsmips/floppies/ramdisk/Makefile +++ b/distrib/newsmips/floppies/ramdisk/Makefile @@ -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 @@ HACKSRC=${TOP}/../../utils/libhack # 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