NetBSD/distrib/vax/floppy/Makefile

30 lines
782 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.6 2002/04/06 16:41:24 bjh21 Exp $
.include "${.CURDIR}/../../Makefile.inc"
.include <bsd.own.mk>
.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
2002-03-29 09:36:04 +03:00
netbsd.gz: ${INSTKERNOBJ}/netbsd.INSTALL.gz
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
${PAX} -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
dd if=${IMAGE}.tmp of=${IMAGE} bs=${IMAGESIZE} conv=sync
.include <bsd.prog.mk>