Home | History | Annotate | Line # | Download | only in stand
Makefile revision 1.7
      1 #	$NetBSD: Makefile,v 1.7 2003/01/03 15:34:31 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 	${RELEASE_INSTALL} ${ARCHIVE} \
     19 	    ${RELEASEDIR}/${MACHINE}/installation/misc/
     20 
     21 ${ARCHIVE}: tmp/BtNetBSD
     22 	cd tmp && tar cZf ${.OBJDIR}/${ARCHIVE} BtNetBSD
     23 
     24 .PHONY: tmp/BtNetBSD
     25 tmp/BtNetBSD:
     26 	rm -rf tmp
     27 	mkdir tmp
     28 	cp -R ${.CURDIR}/BtNetBSD tmp/
     29 	cp ${KERNOBJDIR}/INSTALL/netbsd tmp/BtNetBSD/InstKern
     30 	${MDSETIMAGE} tmp/BtNetBSD/InstKern ${RAMDISKDIR}/ramdisk.fs
     31 	find tmp -path '*/CVS/*' -type f -exec rm -rf {} \;
     32 	find tmp -name CVS -type d | xargs rmdir
     33 	find tmp -name '*.uue' | while read filename; do \
     34 		( cd "`dirname $$filename`" && uudecode "`basename $$filename`" ); \
     35 		rm "$$filename"; \
     36 	done;
     37 	# unixfs is copied into the !BtNetBSD dir at install time
     38 	cd tmp/BtNetBSD && cp -R '!BtNetBSD/native' unixfs
     39 
     40 clean:
     41 	@rm -f ${ARCHIVE}
     42 	@if [ -d tmp ]; then rm -rf tmp; fi
     43 
     44 .include <bsd.prog.mk>
     45