1 1.12 jmc # $NetBSD: Makefile,v 1.12 2001/10/13 06:15:15 jmc Exp $ 2 1.1 thorpej 3 1.1 thorpej TOP= ${.CURDIR}/.. 4 1.1 thorpej 5 1.1 thorpej .include "${TOP}/Makefile.inc" 6 1.1 thorpej IMAGE= ramdisk.fs 7 1.1 thorpej 8 1.1 thorpej CBIN= ramdiskbin 9 1.1 thorpej 10 1.1 thorpej MOUNT_POINT?= /mnt 11 1.1 thorpej # DEV/RDEV file system device, CDEV/RDEV vnconfig device 12 1.1 thorpej VND?= vnd0 13 1.1 thorpej VND_DEV= /dev/${VND}a 14 1.1 thorpej VND_RDEV= /dev/r${VND}a 15 1.1 thorpej VND_CDEV= /dev/${VND}c 16 1.1 thorpej VND_CRDEV= /dev/r${VND}c 17 1.1 thorpej IMAGE?= xxx.fs 18 1.1 thorpej MDEC= ${DESTDIR}/usr/mdec 19 1.1 thorpej 20 1.1 thorpej LISTS= list 21 1.1 thorpej CRUNCHCONF= ${CBIN}.conf 22 1.11 enami MTREECONF= mtree.conf 23 1.1 thorpej 24 1.10 garbled CRUNCHGEN?= crunchgen 25 1.10 garbled 26 1.1 thorpej all: ${CBIN} 27 1.7 christos dd if=/dev/zero of=${IMAGE} count=9000 28 1.1 thorpej vnconfig -v -c ${VND_CDEV} ${IMAGE} 29 1.1 thorpej # disklabel -rw ${VND_CDEV} ${DISKTYPE} 30 1.7 christos newfs -B le -m 0 -o space -i 5120 -c 20 ${VND_RDEV} 31 1.1 thorpej mount ${VND_DEV} ${MOUNT_POINT} 32 1.12 jmc ${MTREE} -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -u 33 1.1 thorpej TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ 34 1.8 sjg KERNOBJDIR=${KERNOBJDIR} \ 35 1.3 ross TARGDIR=${MOUNT_POINT} sh ${TOP}/src/runlist.sh ${.CURDIR}/${LISTS} 36 1.9 jhawk @echo chdir '$${.CURDIR}/../../../notes/alpha; ${MAKE} INSTALL.more' 37 1.9 jhawk @chdir ${.CURDIR}/../../../notes/alpha; ${MAKE} INSTALL.more 38 1.9 jhawk cp `chdir ${.CURDIR}/../../../notes/alpha; ${MAKE} echomore` \ 39 1.5 ross ${MOUNT_POINT} 40 1.1 thorpej @echo "" 41 1.1 thorpej @df -i ${MOUNT_POINT} 42 1.1 thorpej @echo "" 43 1.1 thorpej umount ${MOUNT_POINT} 44 1.1 thorpej vnconfig -u ${VND_CDEV} 45 1.1 thorpej 46 1.1 thorpej unconfig: 47 1.1 thorpej -umount -f ${MOUNT_POINT} 48 1.1 thorpej -vnconfig -u ${VND_DEV} 49 1.1 thorpej -/bin/rm -f ${IMAGE} 50 1.1 thorpej 51 1.1 thorpej ${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} 52 1.10 garbled ${CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC} 53 1.1 thorpej 54 1.1 thorpej ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c 55 1.9 jhawk ${MAKE} -f ${CBIN}.mk all 56 1.1 thorpej 57 1.2 lukem clean cleandir distclean: 58 1.6 veego /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c 59 1.1 thorpej 60 1.1 thorpej .include <bsd.own.mk> 61 1.1 thorpej .include <bsd.obj.mk> 62 1.1 thorpej .include <bsd.subdir.mk> 63