NetBSD/distrib/vax/floppy/Makefile

35 lines
938 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.13 2008/06/23 02:16:54 matt Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
2002-04-30 19:28:32 +04:00
.include <bsd.kernobj.mk>
INSTKERNOBJ!= cd ${.CURDIR}/../ramdisk-kernel && ${PRINTOBJDIR}
IMAGE= boot.fs
2002-03-30 01:53:30 +03:00
IMAGESIZE= 1200k
XXBOOT= ${DESTDIR}/usr/mdec/xxboot_ustarfs
2002-03-30 04:33:20 +03:00
IMAGEDEPENDS= ${XXBOOT} boot.vax netbsd.gz
CLEANFILES+= netbsd.gz boot.vax ${IMAGE}.tmp
2002-03-30 01:53:30 +03:00
realall: ${IMAGE} ${XXBOOT} ${DESTDIR}/usr/mdec/boot
netbsd.gz: ${INSTKERNOBJ}/install.ram.gz
2002-03-29 09:36:04 +03:00
cp -f ${.ALLSRC} ${.TARGET}
2002-03-30 04:33:20 +03:00
boot.vax: ${DESTDIR}/usr/mdec/boot
2002-03-30 01:53:30 +03:00
cp -f ${.ALLSRC} ${.TARGET}
2002-03-29 09:36:04 +03:00
${IMAGE}: ${IMAGEDEPENDS}
2002-03-30 04:33:20 +03:00
cat ${XXBOOT} > ${IMAGE}.tmp
${TOOL_PAX} -O -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
dd if=${IMAGE}.tmp of=${IMAGE} bs=${IMAGESIZE} conv=sync
release: check_RELEASEDIR .WAIT ${IMAGE}
${RELEASE_INSTALL} ${IMAGE} \
${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/bootfs
.include <bsd.prog.mk>