Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/i386/floppies/kernel-ramdisk - remove unused variabl...
details: https://anonhg.NetBSD.org/src/rev/0f4b7467b0c1
branches: trunk
changeset: 521288:0f4b7467b0c1
user: lukem <lukem%NetBSD.org@localhost>
date: Sun Jan 27 15:31:57 2002 +0000
description:
- remove unused variables, and variables that don't need to be set here
- use ${NM} instead of nm
- define KERNELSYMS from KERNELS
- remove netbsd.tmp in clean
diffstat:
distrib/i386/floppies/kernel-ramdisk/Makefile | 29 ++++++++------------------
1 files changed, 9 insertions(+), 20 deletions(-)
diffs (87 lines):
diff -r 596ec970968c -r 0f4b7467b0c1 distrib/i386/floppies/kernel-ramdisk/Makefile
--- a/distrib/i386/floppies/kernel-ramdisk/Makefile Sun Jan 27 15:28:22 2002 +0000
+++ b/distrib/i386/floppies/kernel-ramdisk/Makefile Sun Jan 27 15:31:57 2002 +0000
@@ -1,17 +1,9 @@
-# $NetBSD: Makefile,v 1.6 2001/10/21 23:23:20 jmc Exp $
+# $NetBSD: Makefile,v 1.7 2002/01/27 15:31:57 lukem Exp $
-TOP= ${.CURDIR}/..
-
-.include "${TOP}/Makefile.inc"
+.include "../Makefile.inc"
.include <bsd.kernobj.mk>
.include <bsd.own.mk>
-MDEC= ${DESTDIR}/usr/mdec
-STRIP?= strip
-MDSETIMAGE?= ${DESTDIR}/usr/sbin/mdsetimage
-
-#COMMONDIR= ${TOP}/bootfloppy-common
-#LISTS= ${COMMONDIR}/list
RAMDISK!= cd $(.CURDIR)/../ramdisk-big/; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk-big.fs\n" | \
${MAKE} -s -f-
@@ -25,7 +17,7 @@
netbsd.INSTALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/INSTALL/netbsd netbsd.tmp
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
- nm netbsd.tmp > netbsd.INSTALL.symbols
+ ${NM} netbsd.tmp > netbsd.INSTALL.symbols
${STRIP} netbsd.tmp
gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET}
@@ -33,7 +25,7 @@
netbsd.INSTALL_LAPTOP.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_LAPTOP/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/INSTALL_LAPTOP/netbsd netbsd.tmp
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
- nm netbsd.tmp > netbsd.INSTALL_LAPTOP.symbols
+ ${NM} netbsd.tmp > netbsd.INSTALL_LAPTOP.symbols
${STRIP} netbsd.tmp
gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET}
@@ -42,7 +34,7 @@
cp ${KERNOBJDIR}/INSTALL_TINY/netbsd netbsd.tmp
gdb --write -batch -x ${.CURDIR}/nocluster.gdb netbsd.tmp </dev/null
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_T}
- nm netbsd.tmp > netbsd.INSTALL_TINY.symbols
+ ${NM} netbsd.tmp > netbsd.INSTALL_TINY.symbols
${STRIP} netbsd.tmp
gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET}
@@ -50,7 +42,7 @@
netbsd.INSTALL_SMALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_SMALL/netbsd ${RAMDISK_S}
cp ${KERNOBJDIR}/INSTALL_SMALL/netbsd netbsd.tmp
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_S}
- nm netbsd.tmp > netbsd.INSTALL_SMALL.symbols
+ ${NM} netbsd.tmp > netbsd.INSTALL_SMALL.symbols
${STRIP} netbsd.tmp
gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET}
@@ -59,16 +51,14 @@
cp ${KERNOBJDIR}/INSTALL_PS2/netbsd netbsd.tmp
gdb --write -batch -x ${.CURDIR}/nocluster.gdb netbsd.tmp </dev/null
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_S}
- nm netbsd.tmp > netbsd.INSTALL_PS2.symbols
+ ${NM} netbsd.tmp > netbsd.INSTALL_PS2.symbols
${STRIP} netbsd.tmp
gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET}
KERNELS=netbsd.INSTALL.gz netbsd.INSTALL_TINY.gz netbsd.INSTALL_SMALL.gz \
netbsd.INSTALL_LAPTOP.gz netbsd.INSTALL_PS2.gz
-KERNELSYMS=netbsd.INSTALL.symbols netbsd.INSTALL_TINY.symbols \
- netbsd.INSTALL_SMALL.symbols netbsd.INSTALL_LAPTOP.symbols \
- netbsd.INSTALL_PS2.symbols
+KERNELSYMS=${KERNELS:S/.gz$/.symbols/}
all: ${KERNELS}
@@ -77,7 +67,6 @@
cp -p ${KERNELS} ${KERNELSYMS} ${RELEASEDIR}/binary/kernel
clean cleandir distclean:
- rm -f *.core ${KERNELS} ${KERNELSYMS}
+ rm -f *.core netbsd.tmp ${KERNELS} ${KERNELSYMS}
.include <bsd.obj.mk>
-.include <bsd.subdir.mk>
Home |
Main Index |
Thread Index |
Old Index