NetBSD/distrib/prep/floppies/bootfloppy-common/Makefile.inc

32 lines
650 B
PHP
Raw Normal View History

2002-04-12 18:52:57 +04:00
# $NetBSD: Makefile.inc,v 1.4 2002/04/12 14:52:57 lukem Exp $
2001-01-16 19:53:57 +03:00
.include <bsd.own.mk>
2002-04-12 18:52:57 +04:00
.include "${_SRC_TOP_}/distrib/Makefile.inc"
2001-01-16 19:53:57 +03:00
2002-04-12 18:52:57 +04:00
# Required variables:
# IMAGE
# KERNEL
2001-01-16 19:53:57 +03:00
MDEC?= ${DESTDIR}/usr/mdec
MKBOOTIMAGE?= ${MDEC}/mkbootimage
BOOTLOADER?= ${MDEC}/boot_com0
2002-04-12 18:52:57 +04:00
${IMAGE}: ${KERNEL}
${MKBOOTIMAGE} ${BOOTLOADER} ${.TARGET} ${KERNEL} # XXXDISTRIB
2001-01-16 19:53:57 +03:00
2002-04-12 18:52:57 +04:00
${IMAGE}.gz: ${IMAGE}
gzip -9c ${IMAGE} > ${.TARGET}
2001-01-16 19:53:57 +03:00
2002-04-12 18:52:57 +04:00
KFILES= ${IMAGE} ${IMAGE}.gz
CLEANFILES+= ${KFILES}
2001-01-16 19:53:57 +03:00
2002-04-12 18:52:57 +04:00
realall: ${KFILES}
release: check_RELEASEDIR .WAIT ${KFILES}
-mkdir -p ${RELEASEDIR}/installation/floppy
${RELINSTALL} ${KFILES} ${RELEASEDIR}/installation/floppy
.include <bsd.prog.mk>