xref: /netbsd/distrib/acorn32/stand/Makefile (revision c4a72b64)
1#	$NetBSD: Makefile,v 1.6 2002/07/22 04:42:43 lukem Exp $
2#
3
4.include <bsd.own.mk>
5.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
6
7.include <bsd.kernobj.mk>
8
9
10# we use compressed tar, SparkPlug doesn't handle gzipped tar
11ARCHIVE=BtNetBSD.tar.Z
12
13RAMDISKDIR!=	cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
14
15all: ${ARCHIVE}
16
17release: check_RELEASEDIR .WAIT ${ARCHIVE}
18	mv -f ${ARCHIVE} ${RELEASEDIR}/installation/misc/
19
20${ARCHIVE}: tmp/BtNetBSD
21	cd tmp && tar cZf ${.OBJDIR}/${ARCHIVE} BtNetBSD
22
23.PHONY: tmp/BtNetBSD
24tmp/BtNetBSD:
25	rm -rf tmp
26	mkdir tmp
27	cp -R ${.CURDIR}/BtNetBSD tmp/
28	cp ${KERNOBJDIR}/INSTALL/netbsd tmp/BtNetBSD/InstKern
29	${MDSETIMAGE} tmp/BtNetBSD/InstKern ${RAMDISKDIR}/ramdisk.fs
30	find tmp -path '*/CVS/*' -type f -exec rm -rf {} \;
31	find tmp -name CVS -type d | xargs rmdir
32	find tmp -name '*.uue' | while read filename; do \
33		( cd "`dirname $$filename`" && uudecode "`basename $$filename`" ); \
34		rm "$$filename"; \
35	done;
36	# unixfs is copied into the !BtNetBSD dir at install time
37	cd tmp/BtNetBSD && cp -R '!BtNetBSD/native' unixfs
38
39clean:
40	@rm -f ${ARCHIVE}
41	@if [ -d tmp ]; then rm -rf tmp; fi
42
43.include <bsd.prog.mk>
44