xref: /netbsd/distrib/sparc/instfs/Makefile (revision bf9ec67e)
1#	$NetBSD: Makefile,v 1.8 2002/05/09 11:12:48 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
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