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