Home | History | Annotate | Line # | Download | only in stand
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 2002/07/11 00:11:28 reinoud Exp $
      2 #
      3 
      4 # we use compressed tar, SparkPlug doesn't handle gzipped tar
      5 ARCHIVE=BtNetBSD.tar.Z
      6 
      7 all:
      8 
      9 release: 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
     16 tmp/BtNetBSD:
     17 	rm -rf tmp
     18 	mkdir tmp
     19 	cp -R ${.CURDIR}/BtNetBSD tmp/
     20 	cp ${KERNOBJDIR}/INSTALL/netbsd tmp/BtNetBSD/InstKern
     21 	${MDSETIMAGE} tmp/BtNetBSD/InstKern ${.OBJDIR}/../ramdisk/ramdisk.fs
     22 	find tmp -path '*/CVS/*' -type f -exec rm -rf {} \;
     23 	find tmp -name CVS -type d | xargs rmdir
     24 	find tmp -name '*.uue' | while read filename; do \
     25 		( cd "`dirname $$filename`" && uudecode "`basename $$filename`" ); \
     26 		rm "$$filename"; \
     27 	done;
     28 	# unixfs is copied into the !BtNetBSD dir at install time
     29 	cd tmp/BtNetBSD && cp -R '!BtNetBSD/native' unixfs
     30 
     31 clean:
     32 	@rm -f BtNetBSD.tar.Z
     33 	@if [ -d tmp ]; then rm -rf tmp; fi
     34 
     35 .include <bsd.subdir.mk>
     36 
     37 .include <bsd.obj.mk>
     38 .include <bsd.kernobj.mk>
     39 
     40