Makefile revision 1.6
1#	$NetBSD: Makefile,v 1.6 2002/03/05 21:23:30 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.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
31.ifndef RELEASEDIR
32release:
33	@echo setenv RELEASEDIR first
34	@false
35.else
36release: ${INSTFS}
37	cp ${INSTFS} $(RELEASEDIR)/installation/misc
38	gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz
39.endif	# RELEASEDIR check
40
41.include <bsd.obj.mk>
42.include <bsd.subdir.mk>
43