1# $NetBSD: Makefile,v 1.2 2002/05/11 15:56:03 jdolecek Exp $ 2# 3 4# we use compressed tar, SparkPlug doesn't handle gzipped tar 5ARCHIVE=BtNetBSD.tar.Z 6 7all: 8 9release: 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 16tmp/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 29clean: 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