Source-Changes-HG archive

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

[src/trunk]: src/distrib/mipsco - Add "make release" target



details:   https://anonhg.NetBSD.org/src/rev/bf7916d5ef7e
branches:  trunk
changeset: 504209:bf7916d5ef7e
user:      wdk <wdk%NetBSD.org@localhost>
date:      Sun Feb 25 03:36:20 2001 +0000

description:
- Add "make release" target
- Create directories in release stage area before installing target

diffstat:

 distrib/mipsco/instkernel/Makefile |  21 ++++++++++-----------
 distrib/mipsco/ramdisk/Makefile    |  15 +++++++--------
 2 files changed, 17 insertions(+), 19 deletions(-)

diffs (101 lines):

diff -r 290c6f0a3bb0 -r bf7916d5ef7e distrib/mipsco/instkernel/Makefile
--- a/distrib/mipsco/instkernel/Makefile        Sun Feb 25 01:49:18 2001 +0000
+++ b/distrib/mipsco/instkernel/Makefile        Sun Feb 25 03:36:20 2001 +0000
@@ -1,11 +1,11 @@
-#      $NetBSD: Makefile,v 1.1 2001/02/19 07:45:39 wdk Exp $
+#      $NetBSD: Makefile,v 1.2 2001/02/25 03:36:20 wdk Exp $
 
 .include "../../../Makefile.inc"
 .include <bsd.kernobj.mk>
 .include <bsd.own.mk>
 
-DISKBINDIR=    /installation/diskimage
-KERNBINDIR=    /binary/kernel
+DISKBINDIR=    ${RELEASEDIR}/installation/diskimage
+KERNBINDIR=    ${RELEASEDIR}/binary/kernel
 
 IMAGE=         diskimage
 IMAGESIZE=     4096 # 512 byte blocks, update disktab.diskimage if changed
@@ -33,7 +33,7 @@
 BOOTINSTALL= ${DESTDIR}/usr/mdec/installboot ${VND_CDEV} \
        ${DESTDIR}/usr/mdec/bootxx_ffs
 
-all:   ${IMAGE}.gz
+realall:       ${IMAGE}.gz
 
 netbsd.gz: ${KERN} ${RAMDISK}
        cp ${KERN} netbsd
@@ -71,21 +71,20 @@
        -vnconfig -u ${VND}
        -/bin/rm -f ${IMAGE} ${IMAGE}.gz
 
-realinstall:
+realinstall release:
+       -mkdir -p ${DISKBINDIR} ${KERNBINDIR}
        ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
-               -m ${NONBINMODE} ${IMAGE}.gz ${RELEASEDIR}${DISKBINDIR}
+               -m ${NONBINMODE} ${IMAGE}.gz ${DISKBINDIR}
        ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
-               -m ${BINMODE} netbsd.gz ${RELEASEDIR}${KERNBINDIR}/install.gz
+               -m ${BINMODE} netbsd.gz ${KERNBINDIR}/install.gz
 .ifdef ECOFF_KERNEL
        ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
                -m ${BINMODE} netbsd.ecoff.gz \
-               ${RELEASEDIR}${KERNBINDIR}/install.ecoff.gz
+               ${KERNBINDIR}/install.ecoff.gz
 .endif #ECOFF_KERNEL
 
 clean cleandir distclean:
        rm -f ${CLEANFILES}
 
-# XXX
-depend:
-
 .include <bsd.obj.mk>
+.include <bsd.depall.mk>
diff -r 290c6f0a3bb0 -r bf7916d5ef7e distrib/mipsco/ramdisk/Makefile
--- a/distrib/mipsco/ramdisk/Makefile   Sun Feb 25 01:49:18 2001 +0000
+++ b/distrib/mipsco/ramdisk/Makefile   Sun Feb 25 03:36:20 2001 +0000
@@ -1,11 +1,11 @@
-#      $NetBSD: Makefile,v 1.1 2001/02/19 07:45:40 wdk Exp $
+#      $NetBSD: Makefile,v 1.2 2001/02/25 03:36:20 wdk Exp $
 
 TOP?=          ${.CURDIR}/..
 ARCHDIR?=      ${.CURDIR}/../miniroot
 
 .include "${TOP}/Makefile.inc"
 
-DESTDIR=       ${RELEASEDIR}/installation/netboot
+NETBOOTDIR=    ${RELEASEDIR}/installation/netboot
 
 IMAGE=         ramdisk.fs
 DISKIMAGE=     diskimage.tgz
@@ -29,7 +29,7 @@
 CRUNCHCONF=    ${.CURDIR}/${CBIN}.conf
 MTREE=         ${.CURDIR}/mtree.conf
 
-all: ${IMAGE}
+realall: ${IMAGE}
 
 ${IMAGE}: ${CBIN}
        dd if=/dev/zero of=${IMAGE} count=${CSIZE}
@@ -64,15 +64,14 @@
 echoimage:
        @echo ${.OBJDIR}/${IMAGE}
 
-realinstall:
+realinstall release:
+       -mkdir -p ${NETBOOTDIR}
        ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
-               -m ${NONBINMODE} ${DISKIMAGE} ${DESTDIR}
+               -m ${NONBINMODE} ${DISKIMAGE} ${NETBOOTDIR}
 
 clean cleandir distclean:
        /bin/rm -f *.core ${CLEANFILES} *.o *.cro *.c
 
-# XXX
-depend:
-
 .include <bsd.own.mk>
 .include <bsd.obj.mk>
+.include <bsd.depall.mk>



Home | Main Index | Thread Index | Old Index