Makefile revision 1.5
11.5Ssimonb# $NetBSD: Makefile,v 1.5 1999/04/27 12:03:40 simonb Exp $ 21.5Ssimonb 31.5SsimonbBINDIR= /installation/netboot 41.1Sjonathan 51.1SjonathanTOP?= ${.CURDIR}/.. 61.1SjonathanARCHDIR?= ${.CURDIR}/../../${MACHINE}/miniroot 71.1Sjonathan 81.1Sjonathan.include "${TOP}/Makefile.inc" 91.1SjonathanIMAGE= ramdisk.fs 101.3SsimonbDISKIMAGE= diskimage.tgz 111.1Sjonathan 121.1SjonathanCBIN= ramdiskbin 131.1Sjonathan#CSIZE?= 6144 141.1SjonathanCSIZE?= 4096 151.1SjonathanMOUNT_POINT?= /mnt 161.1Sjonathan# DEV/RDEV file system device, CDEV/RDEV vnconfig device 171.1SjonathanVND?= vnd0 181.1SjonathanVND_DEV= /dev/${VND}a 191.1SjonathanVND_RDEV= /dev/r${VND}a 201.1SjonathanVND_CDEV= /dev/${VND}c 211.1SjonathanVND_CRDEV= /dev/r${VND}c 221.1SjonathanIMAGE?= xxx.fs 231.1SjonathanMDEC= ${DESTDIR}/usr/mdec 241.1Sjonathan 251.1SjonathanLISTS= list 261.1SjonathanCRUNCHCONF= ${CBIN}.conf 271.1SjonathanMTREE= mtree.conf 281.1Sjonathan 291.4Ssimonball: ${IMAGE} 301.4Ssimonb 311.4Ssimonb${IMAGE}: ${CBIN} 321.1Sjonathan dd if=/dev/zero of=${IMAGE} count=${CSIZE} 331.1Sjonathan vnconfig -v -c ${VND_CDEV} ${IMAGE} 341.1Sjonathan# disklabel -rw ${VND_CDEV} ${DISKTYPE} 351.1Sjonathan -(disklabel ${VND_CDEV} > /tmp/proto; disklabel -R -r ${VND_CDEV} /tmp/proto) 361.2Swrstuden -newfs -B le -m 0 -o space -i 5120 ${VND_RDEV} 371.1Sjonathan mount ${VND_DEV} ${MOUNT_POINT} 381.1Sjonathan mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u 391.1Sjonathan TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} ARCHDIR=${ARCHDIR} \ 401.1Sjonathan TARGDIR=${MOUNT_POINT} sh ${TOP}/src/runlist.sh ${.CURDIR}/${LISTS} 411.1Sjonathan @echo "" 421.1Sjonathan @df -i ${MOUNT_POINT} 431.3Ssimonb @echo "" 441.3Ssimonb @echo Building diskimage tar file... 451.3Ssimonb tar cf - -C ${MOUNT_POINT} . | gzip -9 > ${DISKIMAGE} 461.1Sjonathan @echo "" 471.1Sjonathan umount ${MOUNT_POINT} 481.1Sjonathan vnconfig -u ${VND_CDEV} 491.1Sjonathan 501.1Sjonathanunconfig: 511.1Sjonathan -umount -f ${MOUNT_POINT} 521.1Sjonathan -vnconfig -u ${VND_DEV} 531.1Sjonathan -/bin/rm -f ${IMAGE} 541.1Sjonathan 551.1Sjonathan${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} 561.1Sjonathan crunchgen -D ${TOP}/../.. -L ${DESTDIR}/usr/lib ${.ALLSRC} 571.1Sjonathan 581.1Sjonathan${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c 591.1Sjonathan make -f ${CBIN}.mk all 601.1Sjonathan 611.5Ssimonbrealinstall: 621.5Ssimonb ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 631.5Ssimonb -m ${NONBINMODE} ${DISKIMAGE} ${RELEASEDIR}${BINDIR} 641.5Ssimonb 651.1Sjonathanclean cleandir distclean: 661.1Sjonathan /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c 671.1Sjonathan 681.1Sjonathan.include <bsd.own.mk> 691.1Sjonathan.include <bsd.obj.mk> 701.5Ssimonb.include "../Makefile.inc" 71