1# $NetBSD: Makefile,v 1.4 2001/11/08 16:52:20 tron 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 9TOP= ${.CURDIR}/.. 10MINIROOT= ${.CURDIR}/../../miniroot 11 12.include "${TOP}/Makefile.inc" 13 14MOUNT_POINT?= /mnt 15# DEV/RDEV file system device, CDEV/RDEV vnconfig device 16VND?= vnd0 17VND_DEV= /dev/${VND}a 18VND_RDEV= /dev/r${VND}a 19VND_CDEV= /dev/${VND}c 20VND_CRDEV= /dev/r${VND}c 21INSTFS?= instfs.tgz 22 23MINIROOT_IMAGE!=cd ${MINIROOT}; \ 24 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/miniroot.fs\n" | \ 25 ${MAKE} -s -f- 26 27all: ${INSTFS} 28 29${INSTFS}: ${MINIROOT_IMAGE} 30 vnconfig -v -c ${VND} ${MINIROOT_IMAGE} 31 mount ${VND_DEV} ${MOUNT_POINT} 32 (cd ${MOUNT_POINT}; \ 33 tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .) 34 umount ${MOUNT_POINT} 35 vnconfig -u ${VND} 36 37unconfig: 38 -umount -f ${MOUNT_POINT} 39 -vnconfig -u ${VND} 40 -/bin/rm -f ${INSTFS} 41 42clean cleandir distclean: 43 /bin/rm -f *.core ${INSTFS} 44 45.ifndef RELEASEDIR 46release: 47 @echo setenv RELEASEDIR first 48 @false 49.else 50release: ${INSTFS} 51 cp ${INSTFS} $(RELEASEDIR)/installation/bootfs 52.endif # RELEASEDIR check 53 54.include <bsd.obj.mk> 55.include <bsd.subdir.mk> 56