1 1.1.2.2 tv # $NetBSD: Makefile,v 1.1.2.2 2000/10/30 22:20:32 tv Exp $ 2 1.1.2.1 tv # 3 1.1.2.1 tv # instfs.tgz is the filesystem image for disk 2 of the floppy based 4 1.1.2.1 tv # installation method. 5 1.1.2.1 tv # It is constructed by tarring up the contents of the miniroot with 6 1.1.2.1 tv # the exeption of the kernel and boot program. 7 1.1.2.1 tv # 8 1.1.2.1 tv 9 1.1.2.1 tv TOP= ${.CURDIR}/.. 10 1.1.2.1 tv MINIROOT= ${.CURDIR}/../../miniroot 11 1.1.2.1 tv 12 1.1.2.1 tv .include "${TOP}/Makefile.inc" 13 1.1.2.1 tv 14 1.1.2.1 tv MOUNT_POINT?= /mnt 15 1.1.2.1 tv # DEV/RDEV file system device, CDEV/RDEV vnconfig device 16 1.1.2.1 tv VND?= vnd0 17 1.1.2.1 tv VND_DEV= /dev/${VND}a 18 1.1.2.1 tv VND_RDEV= /dev/r${VND}a 19 1.1.2.1 tv VND_CDEV= /dev/${VND}c 20 1.1.2.1 tv VND_CRDEV= /dev/r${VND}c 21 1.1.2.1 tv INSTFS?= instfs.tgz 22 1.1.2.1 tv 23 1.1.2.1 tv MINIROOT_IMAGE!=cd ${MINIROOT}; \ 24 1.1.2.1 tv printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/miniroot.fs\n" | \ 25 1.1.2.1 tv ${MAKE} -s -f- 26 1.1.2.1 tv 27 1.1.2.1 tv all: ${INSTFS} 28 1.1.2.1 tv 29 1.1.2.1 tv ${INSTFS}: ${MINIROOT_IMAGE} 30 1.1.2.1 tv vnconfig -v -c ${VND_CDEV} ${MINIROOT_IMAGE} 31 1.1.2.1 tv mount ${VND_DEV} ${MOUNT_POINT} 32 1.1.2.1 tv (cd ${MOUNT_POINT}; \ 33 1.1.2.1 tv tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .) 34 1.1.2.1 tv umount ${MOUNT_POINT} 35 1.1.2.1 tv vnconfig -u ${VND_CDEV} 36 1.1.2.1 tv 37 1.1.2.1 tv unconfig: 38 1.1.2.1 tv -umount -f ${MOUNT_POINT} 39 1.1.2.1 tv -vnconfig -u ${VND_DEV} 40 1.1.2.1 tv -/bin/rm -f ${INSTFS} 41 1.1.2.1 tv 42 1.1.2.1 tv clean cleandir distclean: 43 1.1.2.1 tv /bin/rm -f *.core ${INSTFS} 44 1.1.2.1 tv 45 1.1.2.1 tv .ifndef RELEASEDIR 46 1.1.2.1 tv release: 47 1.1.2.1 tv @echo setenv RELEASEDIR first 48 1.1.2.1 tv @false 49 1.1.2.1 tv .else 50 1.1.2.2 tv release: ${INSTFS} 51 1.1.2.2 tv cp ${INSTFS} $(RELEASEDIR)/installation/bootfs 52 1.1.2.1 tv .endif # RELEASEDIR check 53 1.1.2.1 tv 54 1.1.2.1 tv .include <bsd.obj.mk> 55 1.1.2.1 tv .include <bsd.subdir.mk> 56