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