Makefile revision 1.6
11.6Ssimonb# $NetBSD: Makefile,v 1.6 1999/04/27 12:03:39 simonb Exp $ 21.1Sjonathan 31.6SsimonbBINDIR= /installation/diskimage 41.1Sjonathan 51.3SsimonbIMAGE= diskimage 61.3SsimonbIMAGESIZE= 4096 # 512 byte blocks 71.3SsimonbDISKTYPE= 81.4SsimonbLABELPROTO= ${.CURDIR}/diskimage.label.proto 91.3Ssimonb# Get defaults from minidisk configuration 101.3Ssimonb.include "../miniroot/Makefile.inc" 111.3SsimonbNEWFSOPTS+= -i 32768 # don't need many inodes! 121.1Sjonathan 131.3SsimonbKERN= ${.CURDIR}/../../../sys/arch/pmax/compile/RAMDISK/netbsd 141.3SsimonbRAMDISK!= cd ${.CURDIR}/../ramdisk; \ 151.3Ssimonb printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \ 161.3Ssimonb ${MAKE} -s -f- 171.3SsimonbCLEANFILES= netbsd netbsd.gz netbsd.ecoff netbsd.ecoff.gz ${IMAGE} 181.3Ssimonb 191.3SsimonbVND_DEV= /dev/${VND} 201.3SsimonbVND_RDEV= /dev/r${VND} 211.3SsimonbMOUNT_POINT?= /mnt 221.3Ssimonb 231.5Ssimonball: netbsd.gz ${IMAGE}.gz 241.1Sjonathan 251.2Ssimonbnetbsd.gz: ${KERN} ${RAMDISK} 261.2Ssimonb cp ${KERN} netbsd 271.2Ssimonb mdsetimage -v netbsd ${RAMDISK} 281.2Ssimonb elf2ecoff netbsd netbsd.ecoff 291.1Sjonathan rm -f netbsd.ecoff.gz 301.2Ssimonb gzip -9 netbsd.ecoff 311.2Ssimonb rm -f netbsd.gz 321.2Ssimonb gzip -9 netbsd 331.3Ssimonb 341.5Ssimonb${IMAGE}.gz: netbsd.gz ${DESTDIR}/usr/mdec/boot 351.3Ssimonb dd if=/dev/zero of=${IMAGE} count=${IMAGESIZE} 361.3Ssimonb vnconfig ${DISKTYPEARG} -v -c ${VND_DEV} ${IMAGE} ${VND_GEOM} 371.3Ssimonb ${PRELABEL} 381.3Ssimonb -newfs -m 0 -o space ${NEWFSOPTS} ${VND_RDEV} 391.3Ssimonb ${BOOTINSTALL} 401.3Ssimonb mount ${VND_DEV} ${MOUNT_POINT} 411.3Ssimonb cp -p ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT} 421.3Ssimonb cp -p netbsd.gz ${MOUNT_POINT}/netbsd 431.3Ssimonb @echo "" 441.3Ssimonb @df -i ${MOUNT_POINT} 451.3Ssimonb @echo "" 461.3Ssimonb umount ${MOUNT_POINT} 471.3Ssimonb vnconfig -u ${VND_DEV} 481.5Ssimonb gzip -9 ${IMAGE} 491.1Sjonathan 501.6Ssimonbrealinstall: 511.6Ssimonb ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 521.6Ssimonb -m ${NONBINMODE} ${IMAGE}.gz ${RELEASEDIR}${BINDIR} 531.6Ssimonb 541.1Sjonathanclean cleandir distclean: 551.1Sjonathan rm -f ${CLEANFILES} 561.1Sjonathan 571.1Sjonathan.include <bsd.own.mk> 581.1Sjonathan.include <bsd.obj.mk> 591.6Ssimonb.include "../Makefile.inc" 60