Makefile revision 1.8
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
12TOP=		${.CURDIR}/..
13MINIROOT=	${.CURDIR}/../xminiroot
14
15.include "${TOP}/Makefile.inc"
16
17MINIROOT_DIR!=	cd ${MINIROOT} && ${PRINTOBJDIR}
18MINIROOT_IMAGE=	${MINIROOT_DIR}/miniroot.fs
19MINIROOT_KERNEL=${MINIROOT_DIR}/netbsd.INSTALL
20
21MOUNT_POINT?=	${MINIROOT_DIR}/mountpoint
22INSTFS?=	instfs.tgz
23
24all: ${INSTFS}
25
26${INSTFS}: ${MINIROOT_IMAGE}
27	(cd ${MOUNT_POINT}; \
28		tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .)
29
30clean cleandir distclean:
31	/bin/rm -f *.core ${INSTFS}
32
33release: 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