2003-01-03 18:34:30 +03:00
|
|
|
# $NetBSD: Makefile,v 1.7 2003/01/03 15:34:31 lukem Exp $
|
2002-05-10 00:03:57 +04:00
|
|
|
#
|
|
|
|
|
2002-07-22 08:42:43 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
|
|
|
|
|
|
|
.include <bsd.kernobj.mk>
|
|
|
|
|
|
|
|
|
2002-05-10 00:03:57 +04:00
|
|
|
# we use compressed tar, SparkPlug doesn't handle gzipped tar
|
|
|
|
ARCHIVE=BtNetBSD.tar.Z
|
|
|
|
|
2002-07-19 20:32:13 +04:00
|
|
|
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
|
|
|
|
|
2002-07-22 08:42:43 +04:00
|
|
|
all: ${ARCHIVE}
|
2002-05-10 00:03:57 +04:00
|
|
|
|
|
|
|
release: check_RELEASEDIR .WAIT ${ARCHIVE}
|
2003-01-03 18:34:30 +03:00
|
|
|
${RELEASE_INSTALL} ${ARCHIVE} \
|
|
|
|
${RELEASEDIR}/${MACHINE}/installation/misc/
|
2002-05-10 00:03:57 +04:00
|
|
|
|
|
|
|
${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/
|
2002-07-10 04:54:02 +04:00
|
|
|
cp ${KERNOBJDIR}/INSTALL/netbsd tmp/BtNetBSD/InstKern
|
2002-07-19 20:32:13 +04:00
|
|
|
${MDSETIMAGE} tmp/BtNetBSD/InstKern ${RAMDISKDIR}/ramdisk.fs
|
2002-05-10 00:03:57 +04:00
|
|
|
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 \
|
2002-05-11 19:56:03 +04:00
|
|
|
( cd "`dirname $$filename`" && uudecode "`basename $$filename`" ); \
|
|
|
|
rm "$$filename"; \
|
2002-05-10 00:03:57 +04:00
|
|
|
done;
|
|
|
|
# unixfs is copied into the !BtNetBSD dir at install time
|
|
|
|
cd tmp/BtNetBSD && cp -R '!BtNetBSD/native' unixfs
|
|
|
|
|
|
|
|
clean:
|
2002-07-22 08:42:43 +04:00
|
|
|
@rm -f ${ARCHIVE}
|
2002-05-10 00:03:57 +04:00
|
|
|
@if [ -d tmp ]; then rm -rf tmp; fi
|
|
|
|
|
2002-07-22 08:42:43 +04:00
|
|
|
.include <bsd.prog.mk>
|