# $NetBSD: Makefile,v 1.6 2002/03/05 21:23:30 thorpej Exp $ # # instfs.tgz is the filesystem image for disk 2 of the floppy based # installation method. # It is constructed by tarring up the contents of the miniroot with # the exeption of the kernel and boot program. # TOP= ${.CURDIR}/.. MINIROOT= ${.CURDIR}/../xminiroot .include "${TOP}/Makefile.inc" .include MINIROOT_DIR!= cd ${MINIROOT} && ${PRINTOBJDIR} MINIROOT_IMAGE= ${MINIROOT_DIR}/miniroot.fs MINIROOT_KERNEL=${MINIROOT_DIR}/netbsd.INSTALL MOUNT_POINT?= ${MINIROOT_DIR}/mountpoint INSTFS?= instfs.tgz all: ${INSTFS} ${INSTFS}: ${MINIROOT_IMAGE} (cd ${MOUNT_POINT}; \ tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .) clean cleandir distclean: /bin/rm -f *.core ${INSTFS} .ifndef RELEASEDIR release: @echo setenv RELEASEDIR first @false .else release: ${INSTFS} cp ${INSTFS} $(RELEASEDIR)/installation/misc gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz .endif # RELEASEDIR check .include .include