Sync usage with man page.
[netbsd-mini2440.git] / distrib / amiga / floppies / inst-common / Makefile.inc
blobcbbb05a2dd6e928854613dc7b69d38b1118ff745
1 #       $NetBSD: Makefile.inc,v 1.22 2003/10/26 07:25:33 lukem Exp $
3 # TOP is assumed to be defined by Makefile including this one.
5 CBIN=           instbin
6 COMMONDIR=      ${TOP}/inst-common
8 MOUNT_POINT?=   /mnt
9 VND?=           vnd0
10 VND_DEV=        /dev/${VND}c
11 VND_RDEV=       /dev/r${VND}c
12 IMAGE?=         xxx-${DISTRIBREV}.fs
13 MDEC=           ${DESTDIR}/usr/mdec
15 LISTS=          ${COMMONDIR}/list ${.CURDIR}/list
16 CRUNCHCONF=     ${COMMONDIR}/${CBIN}.conf
17 MTREECONF=      ${COMMONDIR}/mtree.conf
19 DISKTYPE=       miniroot
21 all: ${CBIN}
22         dd if=/dev/zero of=${IMAGE} bs=128k count=32
23         vnconfig -t ${DISKTYPE} -v -c ${VND_DEV} ${IMAGE}
24         installboot ${MDEC}/xxboot ${VND_RDEV}
25         newfs -B be -c 64 -m 0 -o space ${VND_RDEV} ${DISKTYPE}
26         mount -t ffs ${VND_DEV} ${MOUNT_POINT}
27         ${TOOL_MTREE} -def ${MTREECONF} -p ${MOUNT_POINT}/ -u
28         TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
29             KERNOBJDIR=${KERNOBJDIR} TARGDIR=${MOUNT_POINT} ${HOST_SH} \
30             ${NETBSDSRCDIR}/distrib/common/runlist.sh ${LISTS}
31         @echo ""
32         @df -i ${MOUNT_POINT}
33         @echo ""
34         umount ${MOUNT_POINT}
35         vnconfig -u ${VND_DEV}
37 unconfig:
38         -umount -f ${MOUNT_POINT}
39         -vnconfig -u ${VND_DEV}
40         -/bin/rm -f ${IMAGE}
42 ${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
43         ${TOOL_CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
45 ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
46         ${MAKE} -f ${CBIN}.mk all
48 clean cleandir distclean:
49         /bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
51 .include <bsd.obj.mk>
52 .include <bsd.subdir.mk>