4 .
include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
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
>