1 # $NetBSD: Makefile,v 1.7 2002/05/02 18:02:53 lukem Exp $ 2 # 3 # instfs.tgz is the filesystem image for disk 2 of the floppy based 4 # installation method. 5 # It is constructed by tarring up the contents of the miniroot with 6 # the exeption of the kernel and boot program. 7 # 8 9 .include <bsd.own.mk> 10 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 11 12 MINIROOT= ${.CURDIR}/../../miniroot 13 14 MOUNT_POINT?= /mnt 15 # DEV/RDEV file system device, CDEV/RDEV vnconfig device 16 VND?= vnd0 17 VND_DEV= /dev/${VND}a 18 VND_RDEV= /dev/r${VND}a 19 VND_CDEV= /dev/${VND}c 20 VND_CRDEV= /dev/r${VND}c 21 INSTFS?= instfs.tgz 22 23 MINIROOTDIR!= cd ${MINIROOT} && ${PRINTOBJDIR} 24 MINIROOT_IMAGE= ${MINIROOTDIR}/miniroot.fs 25 26 all: ${INSTFS} 27 28 ${INSTFS}: ${MINIROOT_IMAGE} 29 vnconfig -v -c ${VND} ${MINIROOT_IMAGE} 30 mount ${VND_DEV} ${MOUNT_POINT} 31 (cd ${MOUNT_POINT}; \ 32 tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .) 33 umount ${MOUNT_POINT} 34 vnconfig -u ${VND} 35 36 unconfig: 37 -umount -f ${MOUNT_POINT} 38 -vnconfig -u ${VND} 39 -/bin/rm -f ${INSTFS} 40 41 clean cleandir distclean: 42 /bin/rm -f *.core ${INSTFS} 43 44 release: check_RELEASEDIR .WAIT ${INSTFS} 45 ${RELEASE_INSTALL} ${INSTFS} $(RELEASEDIR)/installation/bootfs 46 47 .include <bsd.prog.mk> 48