NetBSD/distrib/vax/floppy/Makefile

34 lines
905 B
Makefile

# $NetBSD: Makefile,v 1.9 2002/05/05 21:24:51 jdolecek Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk>
INSTKERNOBJ!= cd ${.CURDIR}/../ramdisk-kernel && ${PRINTOBJDIR}
IMAGE= boot.fs
IMAGESIZE= 1200k
XXBOOT= ${DESTDIR}/usr/mdec/xxboot_ustarfs
IMAGEDEPENDS= ${XXBOOT} boot.vax netbsd.gz
CLEANFILES+= netbsd.gz boot.vax ${IMAGE}.tmp
realall: ${IMAGE} ${XXBOOT} ${DESTDIR}/usr/mdec/boot
netbsd.gz: ${INSTKERNOBJ}/install.ram.gz
cp -f ${.ALLSRC} ${.TARGET}
boot.vax: ${DESTDIR}/usr/mdec/boot
cp -f ${.ALLSRC} ${.TARGET}
${IMAGE}: ${IMAGEDEPENDS}
cat ${XXBOOT} > ${IMAGE}.tmp
${PAX} -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}/installation/bootfs
.include <bsd.prog.mk>