NetBSD/distrib/vax/ramdisk-kernel/Makefile
2001-03-04 20:33:03 +00:00

36 lines
808 B
Makefile

# $NetBSD: Makefile,v 1.2 2001/03/04 20:33:03 matt Exp $
TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc"
.include <bsd.own.mk>
.include <bsd.kernobj.mk>
MDEC= ${DESTDIR}/usr/mdec
STRIP?= strip
RAMDISK!= cd ${.CURDIR}/../ramdisk/ && ${PRINTOBJDIR}
.for kernel in INSTALL
netbsd.${kernel}.gz: .NOTMAIN ${KERNOBJDIR}/${kernel}/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/${kernel}/netbsd netbsd.tmp
${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK}/ramdisk.fs
${STRIP} netbsd.tmp
gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET}
KERNELS+= netbsd.${kernel}.gz
.endfor
all: ${KERNELS}
release:
-mkdir -p ${RELEASEDIR}/binary/kernel
cp -p ${KERNELS} ${RELEASEDIR}/binary/kernel
clean cleandir distclean:
rm -f *.core ${KERNELS}
.include <bsd.own.mk>
.include <bsd.obj.mk>
.include <bsd.subdir.mk>