NetBSD/distrib/acorn32/stand/Makefile
lukem 39d512abf7 oop; we need <bsd.own.mk> for ${PRINTOBJDIR}; pull that in, and
convert this Makefile to be more similar to others in distrib/**.

XXX: this still needs work to make this more non-netbsd-cross friendly.
e.g, use ${PAX} and compress instead of assuming that tar supports `Z', etc.
2002-07-22 04:42:43 +00:00

44 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2002/07/22 04:42:43 lukem Exp $
#
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk>
# we use compressed tar, SparkPlug doesn't handle gzipped tar
ARCHIVE=BtNetBSD.tar.Z
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
all: ${ARCHIVE}
release: check_RELEASEDIR .WAIT ${ARCHIVE}
mv -f ${ARCHIVE} ${RELEASEDIR}/installation/misc/
${ARCHIVE}: tmp/BtNetBSD
cd tmp && tar cZf ${.OBJDIR}/${ARCHIVE} BtNetBSD
.PHONY: tmp/BtNetBSD
tmp/BtNetBSD:
rm -rf tmp
mkdir tmp
cp -R ${.CURDIR}/BtNetBSD tmp/
cp ${KERNOBJDIR}/INSTALL/netbsd tmp/BtNetBSD/InstKern
${MDSETIMAGE} tmp/BtNetBSD/InstKern ${RAMDISKDIR}/ramdisk.fs
find tmp -path '*/CVS/*' -type f -exec rm -rf {} \;
find tmp -name CVS -type d | xargs rmdir
find tmp -name '*.uue' | while read filename; do \
( cd "`dirname $$filename`" && uudecode "`basename $$filename`" ); \
rm "$$filename"; \
done;
# unixfs is copied into the !BtNetBSD dir at install time
cd tmp/BtNetBSD && cp -R '!BtNetBSD/native' unixfs
clean:
@rm -f ${ARCHIVE}
@if [ -d tmp ]; then rm -rf tmp; fi
.include <bsd.prog.mk>