1 # $NetBSD: Makefile,v 1.8 2002/05/02 18:02:55 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 TOP= ${.CURDIR}/.. 13 MINIROOT= ${.CURDIR}/../xminiroot 14 15 .include "${TOP}/Makefile.inc" 16 17 MINIROOT_DIR!= cd ${MINIROOT} && ${PRINTOBJDIR} 18 MINIROOT_IMAGE= ${MINIROOT_DIR}/miniroot.fs 19 MINIROOT_KERNEL=${MINIROOT_DIR}/netbsd.INSTALL 20 21 MOUNT_POINT?= ${MINIROOT_DIR}/mountpoint 22 INSTFS?= instfs.tgz 23 24 all: ${INSTFS} 25 26 ${INSTFS}: ${MINIROOT_IMAGE} 27 (cd ${MOUNT_POINT}; \ 28 tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .) 29 30 clean cleandir distclean: 31 /bin/rm -f *.core ${INSTFS} 32 33 release: check_RELEASEDIR .WAIT ${INSTFS} ${MINIROOT_KERNEL} 34 ${RELEASE_INSTALL} ${INSTFS} $(RELEASEDIR)/installation/misc 35 gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz 36 37 .include <bsd.prog.mk> 38