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