# $Id: Makefile,v 1.1 1996/10/10 10:06:14 deraadt Exp $ .include "../Makefile.inc" MOUNT_POINT?= /mnt VND?= vnd0 VND_DEV= /dev/${VND}c VND_RDEV= /dev/r${VND}c IMAGE= kc${REV}.fs PID!= echo $$$$ REALIMAGE!= echo /tmp/image.${PID} MDEC= ${DESTDIR}/usr/mdec LISTS= ${.CURDIR}/list bsd: cd ${.CURDIR}/../../../../sys/arch/sparc/conf && config FLOPPY cd ${.CURDIR}/../../../../sys/arch/sparc/compile/FLOPPY && \ make clean && make depend && make cp ${.CURDIR}/../../../../sys/arch/sparc/compile/FLOPPY/bsd bsd all: bsd dd if=/dev/zero of=${REALIMAGE} bs=10k count=144 vnconfig -v -c ${VND_DEV} ${REALIMAGE} #disklabel -w ${VND_RDEV} floppy newfs -O -m 0 -o space -i 8192 -c 80 ${VND_RDEV} floppy mount ${VND_DEV} ${MOUNT_POINT} TOPDIR=${.CURDIR}/.. CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ TARGDIR=${MOUNT_POINT} sh ${.CURDIR}/../runlist.sh ${LISTS} install -c -o root -g wheel -m 0440 ${MDEC}/boot ${MOUNT_POINT}/boot installboot -v ${MOUNT_POINT}/boot ${MDEC}/bootxx ${VND_RDEV} mtree -def ${.CURDIR}/mtree.conf -p ${MOUNT_POINT}/ -u df -i ${MOUNT_POINT} umount ${MOUNT_POINT} vnconfig -u ${VND_DEV} cat /bin/* > /dev/null # flush buffer cache (yuck) cp ${REALIMAGE} ${IMAGE} rm ${REALIMAGE} unconfig: -umount -f ${MOUNT_POINT} -vnconfig -u ${VND_DEV} -/bin/rm -f ${IMAGE} clean cleandir: /bin/rm -f ${IMAGE} .include .include