From 94e86928c78ed3d830c157edc2ae20d06d6748c9 Mon Sep 17 00:00:00 2001 From: lukem Date: Thu, 28 Mar 2002 02:24:09 +0000 Subject: [PATCH] minor cleanup --- distrib/vax/ramdisk-kernel/Makefile | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/distrib/vax/ramdisk-kernel/Makefile b/distrib/vax/ramdisk-kernel/Makefile index eb14f1d45a91..a099e46a3c1f 100644 --- a/distrib/vax/ramdisk-kernel/Makefile +++ b/distrib/vax/ramdisk-kernel/Makefile @@ -1,25 +1,23 @@ -# $NetBSD: Makefile,v 1.4 2002/03/05 21:23:30 thorpej Exp $ +# $NetBSD: Makefile,v 1.5 2002/03/28 02:24:09 lukem Exp $ -TOP= ${.CURDIR}/.. - -.include "${TOP}/Makefile.inc" +.include "${.CURDIR}/../../Makefile.inc" .include .include -MDEC= ${DESTDIR}/usr/mdec -STRIP?= strip -MDSETIMAGE?= ${DESTDIR}/usr/sbin/mdsetimage +RAMDISKDIR!= cd ${.CURDIR}/../ramdisk/ && ${PRINTOBJDIR} +RAMDISK= ${RAMDISKDIR}/ramdisk.fs -RAMDISK!= cd ${.CURDIR}/../ramdisk/ && ${PRINTOBJDIR} +CLEANFILES= netbsd.tmp .for kernel in INSTALL +KERNELS+= netbsd.${kernel}.gz +CLEANFILES+= netbsd.${kernel}.gz netbsd.${kernel}.gz: .NOTMAIN ${KERNOBJDIR}/${kernel}/netbsd ${RAMDISK} cp ${KERNOBJDIR}/${kernel}/netbsd netbsd.tmp - ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}/ramdisk.fs + ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK} ${STRIP} netbsd.tmp gzip -9 netbsd.tmp mv netbsd.tmp.gz ${.TARGET} -KERNELS+= netbsd.${kernel}.gz .endfor all: ${KERNELS} @@ -28,8 +26,4 @@ release: -mkdir -p ${RELEASEDIR}/binary/kernel cp -p ${KERNELS} ${RELEASEDIR}/binary/kernel -clean cleandir distclean: - rm -f *.core ${KERNELS} - -.include -.include +.include