Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / distrib / ews4800mips / floppies / instkernel / Makefile
blob7447500a0aefd1276daaf06d7e58ba2e6b1898cc
1 # $NetBSD: Makefile,v 1.3 2008/06/23 02:16:53 matt Exp $
3 .include <bsd.own.mk>
4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
6 RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
7 RAMDISK= ${RAMDISKDIR}/ramdisk.fs
9 MDSETTARGETS= RAMDISK ${RAMDISK} -
10 MDSET_RELEASEDIR= binary/kernel
12 .include "${DISTRIBDIR}/common/Makefile.mdset"
14 BOOT_RAMDISK= boot-RAMDISK
15 BOOT_RELEASEDIR= installation/boot
17 all realall: ${BOOT_RAMDISK}.gz
19 ${BOOT_RAMDISK}.gz: netbsd-RAMDISK.gz ${DESTDIR}/usr/mdec/boot_kernel.gz
20 gunzip -c ${DESTDIR}/usr/mdec/boot_kernel.gz > ${BOOT_RAMDISK}.tmp
21 ${TOOL_MDSETIMAGE} ${BOOT_RAMDISK}.tmp netbsd-RAMDISK.gz
22 ${ELF2ECOFF} ${BOOT_RAMDISK}.tmp ${BOOT_RAMDISK}.coff
23 gzip -9nc ${BOOT_RAMDISK}.coff > ${.TARGET}
25 CLEANFILES+= ${BOOT_RAMDISK}.tmp ${BOOT_RAMDISK}.coff ${BOOT_RAMDISK}.gz
27 release:: check_RELEASEDIR .WAIT ${BOOT_RAMDISK}.gz
28 ${RELEASE_INSTALL} ${BOOT_RAMDISK}.gz \
29 ${RELEASEDIR}/${RELEASEMACHINEDIR}/${BOOT_RELEASEDIR}
31 .include <bsd.prog.mk>