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