Source-Changes-HG archive

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

[src/trunk]: src/distrib/newsmips/floppies/ramdisk - Rename ${SIZE} -> ${RAMD...



details:   https://anonhg.NetBSD.org/src/rev/c45eaa952b36
branches:  trunk
changeset: 521617:c45eaa952b36
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Feb 02 07:26:40 2002 +0000

description:
- Rename ${SIZE} -> ${RAMDISKSIZE} to avoid conflict with new-toolchain.
- On clean target, try to "make -f ramdiskbin.mk clean" first if it exists.
- Include bsd.prog.mk for new-toolchain.

diffstat:

 distrib/newsmips/floppies/ramdisk/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 0164582ce578 -r c45eaa952b36 distrib/newsmips/floppies/ramdisk/Makefile
--- a/distrib/newsmips/floppies/ramdisk/Makefile        Sat Feb 02 07:18:55 2002 +0000
+++ b/distrib/newsmips/floppies/ramdisk/Makefile        Sat Feb 02 07:26:40 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2001/10/13 06:15:19 jmc Exp $
+#      $NetBSD: Makefile,v 1.8 2002/02/02 07:26:40 tsutsui Exp $
 
 TOP=           ${.CURDIR}/..
 
@@ -20,11 +20,11 @@
 CRUNCHGEN?=    crunchgen
 MTREE?=                mtree
 
-SIZE=          2048k
+RAMDISKSIZE=   2048k
 DISKTYPE=      floppyinstfs
 
 all: ${CBIN} 
-       dd if=/dev/zero of=${IMAGE} bs=${SIZE} count=1
+       dd if=/dev/zero of=${IMAGE} bs=${RAMDISKSIZE} count=1
        vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE}
        disklabel -rw ${VND} ${DISKTYPE}
        newfs -B be -m 0 -o space -i 8192 -c 128 ${VND_RDEV}
@@ -56,8 +56,10 @@
 HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o setlocale.o yplib.o
 
 clean cleandir distclean:
+       if [ -f ${CBIN}.mk ]; then ${MAKE} -f ${CBIN}.mk clean; fi; \
        rm -f ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache
        rm -f *.core *.o *.cro *.c
 
 .include <bsd.own.mk>
 .include <bsd.obj.mk>
+.include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index