Makefile revision 1.9
1231990Smp#	$NetBSD: Makefile,v 1.9 2002/12/21 02:52:25 lukem Exp $
259243Sobrien#
359243Sobrien# instfs.tgz is the filesystem image for disk 2 of the floppy based
4231990Smp# installation method.
5231990Smp# It is constructed by tarring up the contents of the miniroot with
6131962Smp# the exception of the kernel and boot program.
759243Sobrien#
859243Sobrien
959243Sobrien.include <bsd.own.mk>
1059243Sobrien.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
11
12IMAGETAR=		instfs.tgz
13IMAGETAR_RELEASEDIR=	installation/bootfs
14
15MINIROOTDIR!=	cd ${.CURDIR}/../../miniroot && ${PRINTOBJDIR}
16WORKDIR=	${MINIROOTDIR}/work
17WORKBUILT=	${MINIROOTDIR}/work.built
18WORKSPEC=	instfs.spec
19
20${WORKSPEC}: ${MINIROOTDIR}/work.spec
21	-rm -f ${.TARGET} ${.TARGET}.tmp
22	egrep -v '^\./(netbsd|boot)($$|[ \t])' ${.ALLSRC} > ${.TARGET}.tmp \
23	&& mv ${.TARGET}.tmp ${.TARGET}
24
25CLEANFILES+=	${WORKSPEC} ${WORKSPEC}.tmp
26
27${WORKBUILT}:
28	@echo "Need ../../miniroot built first"
29	@false
30
31.include "${DISTRIBDIR}/common/Makefile.image"
32
33.include <bsd.prog.mk>
34