NetBSD/distrib/sparc/instfs/Makefile
tron 34d8f65b19 Use "vnd0" instead of "/dev/vnd0c" as argument for "vnconfig" because it
is more portable and works with the latest "vnconfig".
2001-11-08 16:52:20 +00:00

56 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2001/11/08 16:52:20 tron Exp $
#
# instfs.tgz is the filesystem image for disk 2 of the floppy based
# installation method.
# It is constructed by tarring up the contents of the miniroot with
# the exeption of the kernel and boot program.
#
TOP= ${.CURDIR}/..
MINIROOT= ${.CURDIR}/../../miniroot
.include "${TOP}/Makefile.inc"
MOUNT_POINT?= /mnt
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
VND?= vnd0
VND_DEV= /dev/${VND}a
VND_RDEV= /dev/r${VND}a
VND_CDEV= /dev/${VND}c
VND_CRDEV= /dev/r${VND}c
INSTFS?= instfs.tgz
MINIROOT_IMAGE!=cd ${MINIROOT}; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/miniroot.fs\n" | \
${MAKE} -s -f-
all: ${INSTFS}
${INSTFS}: ${MINIROOT_IMAGE}
vnconfig -v -c ${VND} ${MINIROOT_IMAGE}
mount ${VND_DEV} ${MOUNT_POINT}
(cd ${MOUNT_POINT}; \
tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .)
umount ${MOUNT_POINT}
vnconfig -u ${VND}
unconfig:
-umount -f ${MOUNT_POINT}
-vnconfig -u ${VND}
-/bin/rm -f ${INSTFS}
clean cleandir distclean:
/bin/rm -f *.core ${INSTFS}
.ifndef RELEASEDIR
release:
@echo setenv RELEASEDIR first
@false
.else
release: ${INSTFS}
cp ${INSTFS} $(RELEASEDIR)/installation/bootfs
.endif # RELEASEDIR check
.include <bsd.obj.mk>
.include <bsd.subdir.mk>