# $NetBSD: Makefile,v 1.3 2002/03/05 19:59:16 thorpej Exp $ TOP= ${.CURDIR}/.. .include "${TOP}/Makefile.inc" .include .include KERNELS= A7INST CATSINST RPCINST SHARKINST STRIP?= strip RAMDISKDIR!= cd $(.CURDIR)/../ramdisk && ${PRINTOBJDIR} RAMDISK= ${RAMDISKDIR}/ramdisk-${REV}.fs CLEANFILES+= netbsd.tmp ${KERNELS:C/^.*$/netbsd.&.gz/g} MDSETIMAGE?= mdsetimage all: ${KERNELS:C/^.*$/netbsd.&.gz/g} .for kern in ${KERNELS} netbsd.${kern}.gz: ${KERNOBJDIR}/${kern}/netbsd ${RAMDISK} cp ${KERNOBJDIR}/${kern}/netbsd netbsd.tmp ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK} ${STRIP} netbsd.tmp gzip -9 netbsd.tmp mv netbsd.tmp.gz ${.TARGET} .endfor clean cleandir distclean: /bin/rm -f *.core ${CLEANFILES} .include