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