Makefile revision 1.1
11.1Sjonathan# $NetBSD: Makefile,v 1.1 1998/11/27 23:10:28 jonathan Exp $ 21.1Sjonathan 31.1SjonathanTOP?= ${.CURDIR}/.. 41.1SjonathanARCHDIR?= ${.CURDIR}/../../${MACHINE}/miniroot 51.1Sjonathan 61.1Sjonathan.include "${TOP}/Makefile.inc" 71.1SjonathanIMAGE= ramdisk.fs 81.1Sjonathan 91.1SjonathanCBIN= ramdiskbin 101.1Sjonathan#CSIZE?= 6144 111.1SjonathanCSIZE?= 4096 121.1SjonathanMOUNT_POINT?= /mnt 131.1Sjonathan# DEV/RDEV file system device, CDEV/RDEV vnconfig device 141.1SjonathanVND?= vnd0 151.1SjonathanVND_DEV= /dev/${VND}a 161.1SjonathanVND_RDEV= /dev/r${VND}a 171.1SjonathanVND_CDEV= /dev/${VND}c 181.1SjonathanVND_CRDEV= /dev/r${VND}c 191.1SjonathanIMAGE?= xxx.fs 201.1SjonathanMDEC= ${DESTDIR}/usr/mdec 211.1Sjonathan 221.1SjonathanLISTS= list 231.1SjonathanCRUNCHCONF= ${CBIN}.conf 241.1SjonathanMTREE= mtree.conf 251.1Sjonathan 261.1Sjonathanall: ${CBIN} 271.1Sjonathan dd if=/dev/zero of=${IMAGE} count=${CSIZE} 281.1Sjonathan vnconfig -v -c ${VND_CDEV} ${IMAGE} 291.1Sjonathan# disklabel -rw ${VND_CDEV} ${DISKTYPE} 301.1Sjonathan -(disklabel ${VND_CDEV} > /tmp/proto; disklabel -R -r ${VND_CDEV} /tmp/proto) 311.1Sjonathan -newfs -m 0 -o space -i 5120 ${VND_RDEV} 321.1Sjonathan mount ${VND_DEV} ${MOUNT_POINT} 331.1Sjonathan mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u 341.1Sjonathan TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} ARCHDIR=${ARCHDIR} \ 351.1Sjonathan TARGDIR=${MOUNT_POINT} sh ${TOP}/src/runlist.sh ${.CURDIR}/${LISTS} 361.1Sjonathan @echo "" 371.1Sjonathan @df -i ${MOUNT_POINT} 381.1Sjonathan @echo "" 391.1Sjonathan umount ${MOUNT_POINT} 401.1Sjonathan vnconfig -u ${VND_CDEV} 411.1Sjonathan 421.1Sjonathanunconfig: 431.1Sjonathan -umount -f ${MOUNT_POINT} 441.1Sjonathan -vnconfig -u ${VND_DEV} 451.1Sjonathan -/bin/rm -f ${IMAGE} 461.1Sjonathan 471.1Sjonathan${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} 481.1Sjonathan crunchgen -D ${TOP}/../.. -L ${DESTDIR}/usr/lib ${.ALLSRC} 491.1Sjonathan 501.1Sjonathan${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c 511.1Sjonathan make -f ${CBIN}.mk all 521.1Sjonathan 531.1Sjonathanclean cleandir distclean: 541.1Sjonathan /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c 551.1Sjonathan 561.1Sjonathan.include <bsd.own.mk> 571.1Sjonathan.include <bsd.obj.mk> 581.1Sjonathan.include <bsd.subdir.mk> 59