No empty .Rs/.Re
[netbsd-mini2440.git] / distrib / rs6000 / bootfs / Makefile
blobf1c740eec77fc6f909356144f601987c1813b2f1
1 # $NetBSD$
3 .include <bsd.own.mk>
4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
6 IMAGE= boot.fs
8 MDEC= ${DESTDIR}/usr/mdec
9 BOOTLOADER= ${MDEC}/boot
11 KERNDIR!= cd ${.CURDIR}/../instkernel && ${PRINTOBJDIR}
12 KERNEL= ${KERNDIR}/netbsd-INSTALL.gz
14 TMPKERNEL= ${.OBJDIR}/netbsd
16 BOOT_RELEASEDIR= installation/bootfs
18 ${IMAGE}.gz: ${KERNEL} ${BOOTLOADER}
19 gzip -cd ${KERNEL} > ${TMPKERNEL}
20 ${TOOL_POWERPCMKBOOTIMAGE} -m ${MACHINE} \
21 -b ${BOOTLOADER} -k ${TMPKERNEL} ${IMAGE}
22 gzip -9nc ${IMAGE} > ${IMAGE}.tmp
23 mv ${IMAGE}.tmp ${.TARGET}
25 CLEANFILES+= ${IMAGE} ${IMAGE}.tmp ${IMAGE}.gz
27 all realall: ${IMAGE}.gz
29 release:: check_RELEASEDIR .WAIT ${IMAGE}.gz
30 ${RELEASE_INSTALL} ${IMAGE}.gz \
31 ${RELEASEDIR}/${RELEASEMACHINEDIR}/${BOOT_RELEASEDIR}
33 .include <bsd.prog.mk>