NetBSD/distrib/amiga/floppies/inst-common/Makefile.inc

49 lines
1.2 KiB
PHP
Raw Normal View History

1996-08-30 21:32:23 +04:00
# $NetBSD: Makefile.inc,v 1.8 1996/08/30 17:32:23 thorpej Exp $
1994-10-06 23:25:29 +03:00
# TOP is assumed to be defined by Makefile including this one.
CBIN= instbin
COMMONDIR= ${TOP}/inst-common
MOUNT_POINT?= /mnt
VND?= vnd0
VND_DEV= /dev/${VND}c
VND_RDEV= /dev/r${VND}c
IMAGE?= xxx-${REV}.fs
MDEC= ${DESTDIR}/usr/mdec
LISTS= ${COMMONDIR}/list ${.CURDIR}/list
CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
MTREE= ${COMMONDIR}/mtree.conf
all: ${CBIN}
dd if=/dev/zero of=${IMAGE} bs=128k count=32
1994-10-06 23:25:29 +03:00
vnconfig -v -c ${VND_DEV} ${IMAGE}
newfs -c 64 -O -m 0 -o space ${VND_RDEV} miniroot
mount -t ffs ${VND_DEV} ${MOUNT_POINT}
1994-10-06 23:25:29 +03:00
mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
@echo ""
@df -i ${MOUNT_POINT}
@echo ""
umount ${MOUNT_POINT}
vnconfig -u ${VND_DEV}
1994-10-06 23:25:29 +03:00
unconfig:
-umount -f ${MOUNT_POINT}
-vnconfig -u ${VND_DEV}
1994-10-06 23:25:29 +03:00
-/bin/rm -f ${IMAGE}
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
1995-10-02 16:10:53 +03:00
crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
1994-10-06 23:25:29 +03:00
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
1995-09-30 11:04:03 +03:00
make -f ${CBIN}.mk all
1994-10-06 23:25:29 +03:00
clean cleandir:
/bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c
.include <bsd.obj.mk>
.include <bsd.subdir.mk>