Makefile revision 1.5
1# $NetBSD: Makefile,v 1.5 2002/03/05 21:16:52 thorpej 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}/../xminiroot 11 12.include "${TOP}/Makefile.inc" 13 14MINIROOT_DIR!= cd ${MINIROOT} && ${PRINTOBJDIR} 15MINIROOT_IMAGE= ${MINIROOT_DIR}/miniroot.fs 16MINIROOT_KERNEL=${MINIROOT_DIR}/netbsd.INSTALL 17 18MOUNT_POINT?= ${MINIROOT_DIR}/mountpoint 19INSTFS?= instfs.tgz 20 21all: ${INSTFS} 22 23${INSTFS}: ${MINIROOT_IMAGE} 24 (cd ${MOUNT_POINT}; \ 25 tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .) 26 27clean cleandir distclean: 28 /bin/rm -f *.core ${INSTFS} 29 30.ifndef RELEASEDIR 31release: 32 @echo setenv RELEASEDIR first 33 @false 34.else 35release: ${INSTFS} 36 cp ${INSTFS} $(RELEASEDIR)/installation/misc 37 gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz 38.endif # RELEASEDIR check 39 40.include <bsd.obj.mk> 41.include <bsd.subdir.mk> 42