minor cleanup
This commit is contained in:
parent
98945a6d0f
commit
94e86928c7
|
@ -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 <bsd.own.mk>
|
||||
.include <bsd.kernobj.mk>
|
||||
|
||||
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 <bsd.obj.mk>
|
||||
.include <bsd.subdir.mk>
|
||||
.include <bsd.prog.mk>
|
||||
|
|
Loading…
Reference in New Issue