NetBSD/distrib/rs6000/bootfs/Makefile
apb 36ef98548b Use ${TOOL_GZIP} instead of just gzip in all Makefiles
outside */dist/* subdirectories.

When USE_PIGZGZIP=yes, bsd.own.mk sets TOOL_GZIP=${TOOL_PIGZ},
so there's no need to test USE_PIGZGZIP in these Makefiles.
2014-01-27 08:18:07 +00:00

34 lines
851 B
Makefile

# $NetBSD: Makefile,v 1.2 2014/01/27 08:18:07 apb Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= boot.fs
MDEC= ${DESTDIR}/usr/mdec
BOOTLOADER= ${MDEC}/boot
KERNDIR!= cd ${.CURDIR}/../instkernel && ${PRINTOBJDIR}
KERNEL= ${KERNDIR}/netbsd-INSTALL.gz
TMPKERNEL= ${.OBJDIR}/netbsd
BOOT_RELEASEDIR= installation/bootfs
${IMAGE}.gz: ${KERNEL} ${BOOTLOADER}
${TOOL_GZIP} -cd ${KERNEL} > ${TMPKERNEL}
${TOOL_POWERPCMKBOOTIMAGE} -m ${MACHINE} \
-b ${BOOTLOADER} -k ${TMPKERNEL} ${IMAGE}
${TOOL_GZIP} -9nc ${IMAGE} > ${IMAGE}.tmp
mv ${IMAGE}.tmp ${.TARGET}
CLEANFILES+= ${IMAGE} ${IMAGE}.tmp ${IMAGE}.gz
all realall: ${IMAGE}.gz
release:: check_RELEASEDIR .WAIT ${IMAGE}.gz
${RELEASE_INSTALL} ${IMAGE}.gz \
${RELEASEDIR}/${RELEASEMACHINEDIR}/${BOOT_RELEASEDIR}
.include <bsd.prog.mk>