Home | History | Annotate | Line # | Download | only in instfs
Makefile revision 1.7
      1 #	$NetBSD: Makefile,v 1.7 2002/03/25 01:58:57 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 TOP=		${.CURDIR}/..
     10 MINIROOT=	${.CURDIR}/../xminiroot
     11 
     12 .include "${TOP}/Makefile.inc"
     13 .include <bsd.own.mk>
     14 
     15 MINIROOT_DIR!=	cd ${MINIROOT} && ${PRINTOBJDIR}
     16 MINIROOT_IMAGE=	${MINIROOT_DIR}/miniroot.fs
     17 MINIROOT_KERNEL=${MINIROOT_DIR}/netbsd.INSTALL
     18 
     19 MOUNT_POINT?=	${MINIROOT_DIR}/mountpoint
     20 INSTFS?=	instfs.tgz
     21 
     22 all: ${INSTFS}
     23 
     24 ${INSTFS}: ${MINIROOT_IMAGE}
     25 	(cd ${MOUNT_POINT}; \
     26 		tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .)
     27 
     28 clean cleandir distclean:
     29 	/bin/rm -f *.core ${INSTFS}
     30 
     31 release: check_RELEASEDIR .WAIT ${INSTFS}
     32 	cp ${INSTFS} $(RELEASEDIR)/installation/misc
     33 	gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz
     34 
     35 .include <bsd.obj.mk>
     36 .include <bsd.subdir.mk>
     37