2002-04-07 08:21:22 +04:00
|
|
|
# $NetBSD: Makefile,v 1.7 2002/04/07 04:21:22 lukem Exp $
|
2002-01-25 18:28:41 +03:00
|
|
|
|
2002-04-07 08:21:22 +04:00
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
2002-01-25 18:28:41 +03:00
|
|
|
.include <bsd.own.mk>
|
2002-03-06 16:25:49 +03:00
|
|
|
.include <bsd.kernobj.mk>
|
2002-01-25 18:28:41 +03:00
|
|
|
|
|
|
|
KERNELS= INSTALL
|
|
|
|
|
2002-03-06 00:16:51 +03:00
|
|
|
RAMDISKDIR!= cd $(.CURDIR)/../ramdisk && ${PRINTOBJDIR}
|
2002-03-12 17:28:27 +03:00
|
|
|
RAMDISK= ${RAMDISKDIR}/ramdisk.fs
|
2002-01-25 18:28:41 +03:00
|
|
|
|
2002-04-07 08:21:22 +04:00
|
|
|
CLEANFILES+= netbsd.tmp netbsd.tmp.gz ${KERNELS:C/^.*$/netbsd.&.gz/g}
|
2002-01-25 18:28:41 +03:00
|
|
|
|
2002-03-06 16:25:49 +03:00
|
|
|
realall: ${KERNELS:C/^.*$/netbsd.&.gz/g}
|
2002-01-25 18:28:41 +03:00
|
|
|
|
|
|
|
.for kern in ${KERNELS}
|
|
|
|
netbsd.${kern}.gz: ${KERNOBJDIR}/${kern}/netbsd ${RAMDISK}
|
2002-04-07 08:21:22 +04:00
|
|
|
cp ${KERNOBJDIR}/${kern}/netbsd netbsd.tmp
|
|
|
|
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
|
|
|
|
${STRIP} netbsd.tmp
|
|
|
|
gzip -9 netbsd.tmp
|
|
|
|
mv netbsd.tmp.gz ${.TARGET}
|
2002-01-25 18:28:41 +03:00
|
|
|
.endfor
|
|
|
|
|
2002-03-06 16:25:49 +03:00
|
|
|
.include <bsd.prog.mk>
|