Makefile revision 1.2
11.2Sross# $NetBSD: Makefile,v 1.2 1998/10/29 00:37:06 ross Exp $ 21.1Sross 31.2SrossIMAGE= cdhdtape 41.1SrossIMAGESIZE= 4000 51.1SrossNFILES= 3 61.1Sross 71.1SrossINSTKERNEL!=cd ${.CURDIR}/../instkernel; \ 81.2Sross printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/netbsd.gz\n" | \ 91.1Sross ${MAKE} -s -f- 101.1Sross 111.1SrossMOUNT_POINT?= /mnt 121.1SrossVND?= vnd0 131.1SrossVND_DEV= /dev/${VND}a 141.1SrossVND_RDEV= /dev/r${VND}a 151.1SrossVND_CDEV= /dev/${VND}c 161.1SrossVND_CRDEV= /dev/r${VND}c 171.1SrossKERN?= netbsd-xxx 181.1SrossMDEC= ${DESTDIR}/usr/mdec 191.1SrossFSTMP= ustar.tmp 201.1Sross 211.1SrossPRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx 221.1SrossSECONDARYBOOT= ${DESTDIR}/usr/mdec/boot 231.1Sross 241.1SrossDISKTYPE= floppy 251.1SrossMETANAME!= printf USTAR.volsize.%o ${IMAGESIZE} 261.1Sross 271.1SrossCLEANFILES+= netbsd ${FSTMP} ${IMAGE} tmp tmp.gz USTAR.volsize.* 281.1Sross 291.1Srossall: netbsd 301.1Sross @echo Making CD/tape image 311.1Sross cp /dev/null ${METANAME} 321.1Sross cp /dev/null tapelabel 331.1Sross tar cvf ${FSTMP} ${SECONDARYBOOT} tapelabel ${METANAME} netbsd 341.1Sross @rm tapelabel 351.1Sross @echo not really doing rm ${METANAME} 361.1Sross @ echo '' 371.1Sross @ls -l ${FSTMP} | (read mode links uid gid size junk; \ 381.1Sross bytes=$$((${IMAGESIZE} * 512 - $$size - 8 * 1024));\ 391.1Sross echo There are $$bytes \($$(($$bytes / 1024))K\) bytes free) 401.1Sross @ echo '' 411.1Sross dd if=/dev/zero of=${IMAGE} count=${IMAGESIZE} 421.1Sross vnconfig -v -c ${VND_CDEV} ${IMAGE} \ 431.1Sross 512/18/2/$$((${IMAGESIZE} / (18 * 2))) 441.1Sross dd bs=8k seek=1 if=${FSTMP} of=${VND_CDEV} 451.1Sross @echo not really doing rm ${FSTMP} 461.1Sross disklabel -rw ${VND_CDEV} ${DISKTYPE} 471.1Sross @echo "installing new bootblocks" 481.1Sross ${MDEC}/installboot -b 17 -v \ 491.1Sross ${SECONDARYBOOT} ${PRIMARYBOOT} ${VND_CRDEV} 501.1Sross vnconfig -u ${VND_CDEV} 511.1Sross 521.1Srossnetbsd: ${INSTKERNEL} 531.2Sross cp ${INSTKERNEL} netbsd 541.1Sross 551.1Srossunconfig: 561.1Sross -umount -f ${MOUNT_POINT} 571.1Sross -vnconfig -u ${VND_CDEV} 581.1Sross -/bin/rm -f ${IMAGE} 591.1Sross 601.1Srossclean cleandir distclean: 611.1Sross /bin/rm -f *.core ${CLEANFILES} 621.1Sross 631.1Sross.include <bsd.own.mk> 641.1Sross.include <bsd.obj.mk> 65