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