Makefile revision 1.14
1# $NetBSD: Makefile,v 1.14 1999/05/16 08:21:53 gwr Exp $ 2 3TOP= ${.CURDIR}/.. 4 5# This include just sets REV=XX 6.include "${TOP}/Makefile.inc" 7 8IMAGE= miniroot 9 10TREE= ${TOP}/common/${IMAGE}.tree 11 12LISTS= ${TOP}/common/${IMAGE}.list \ 13 ${TOP}/common/mini_sbin.list \ 14 ${TOP}/common/mini_bin.list \ 15 ${TOP}/common/mini_usr.list 16 17KERNEL3 = ${KERNOBJDIR}/INSTALL/netbsd 18KERNEL3X = ${KERNOBJDIR}/INSTALL3X/netbsd 19 20MOUNT_POINT?= /mnt 21BDEV?= /dev/sd1b 22CDEV?= /dev/rsd1b 23 24# These are all the parameters for the miniroot: (8MB) 25DISKTYPE= miniroot 26NBLKS= 20480 27# bigendian, old format, minfree, opt, b/i trks, sects, cpg 28NEWFSARGS= -B be -O -m 0 -o space -i 8192 -t 8 -u 32 -c 16 29 30CLEANFILES= ${IMAGE}.gz install.sub 31 32all: ${IMAGE}.gz 33 34${IMAGE}.gz: ${TREE} ${LISTS} install.sub 35 -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE} 36 mount ${BDEV} ${MOUNT_POINT} 37 mtree -def ${TREE} -p ${MOUNT_POINT}/ -u 38 cp ${KERNEL3} ${MOUNT_POINT}/netbsd.sun3 39 cp ${KERNEL3X} ${MOUNT_POINT}/netbsd.sun3x 40 TOPDIR=${TOP} CURDIR=${.CURDIR} \ 41 OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \ 42 sh ${TOP}/common/RunList.sh ${LISTS} 43 sync ; sleep 1 ; sync 44 cd ${MOUNT_POINT} ;\ 45 usr/mdec/installboot -v ufsboot usr/mdec/bootxx ${CDEV} 46 sync 47 @echo "" 48 @df -i ${MOUNT_POINT} 49 @echo "" 50 -umount ${MOUNT_POINT} 51 dd if=${CDEV} bs=16b count=`expr ${NBLKS} / 16` |\ 52 gzip > ${IMAGE}.tmp 53 -mv -f ${IMAGE}.tmp ${IMAGE}.gz 54 55# Do not delete this if I change my mind and kill make... 56.PRECIOUS: ${IMAGE}.gz 57 58install.sub : ${TOP}/../miniroot/install.sub 59 sed -e "/^VERSION=/s/=.*/=${REV}/" < $? > $@ 60 61clean cleandir distclean: 62 -rm -f a.out core *.core *.o 63 -rm -f ${CLEANFILES} 64 65# Standard rules needed by the above... 66.include <bsd.obj.mk> 67