# $NetBSD: Makefile,v 1.4 2002/01/20 05:57:10 mrg 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" MINIROOT_DIR!=cd ${MINIROOT}; \ printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | \ ${MAKE} -s -f- 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