NetBSD/distrib/vax/ramdisk-kernel/Makefile

36 lines
816 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.4 2002/03/05 21:23:30 thorpej Exp $
2000-05-23 22:34:58 +04:00
TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc"
2001-03-04 23:33:03 +03:00
.include <bsd.own.mk>
2000-05-23 22:34:58 +04:00
.include <bsd.kernobj.mk>
MDEC= ${DESTDIR}/usr/mdec
STRIP?= strip
MDSETIMAGE?= ${DESTDIR}/usr/sbin/mdsetimage
2000-05-23 22:34:58 +04:00
2001-03-04 23:33:03 +03:00
RAMDISK!= cd ${.CURDIR}/../ramdisk/ && ${PRINTOBJDIR}
2000-05-23 22:34:58 +04:00
.for kernel in INSTALL
netbsd.${kernel}.gz: .NOTMAIN ${KERNOBJDIR}/${kernel}/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/${kernel}/netbsd netbsd.tmp
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}/ramdisk.fs
2000-05-23 22:34:58 +04:00
${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.obj.mk>
.include <bsd.subdir.mk>