2002-05-02 22:02:14 +04:00
|
|
|
# $NetBSD: Makefile,v 1.7 2002/05/02 18:02:53 lukem Exp $
|
2000-10-20 15:56:55 +04:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2002-03-06 00:16:51 +03:00
|
|
|
.include <bsd.own.mk>
|
2002-05-02 22:02:14 +04:00
|
|
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
|
|
|
|
|
|
|
MINIROOT= ${.CURDIR}/../../miniroot
|
2000-10-20 15:56:55 +04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2002-03-06 00:16:51 +03:00
|
|
|
MINIROOTDIR!= cd ${MINIROOT} && ${PRINTOBJDIR}
|
|
|
|
MINIROOT_IMAGE= ${MINIROOTDIR}/miniroot.fs
|
2000-10-20 15:56:55 +04:00
|
|
|
|
|
|
|
all: ${INSTFS}
|
|
|
|
|
|
|
|
${INSTFS}: ${MINIROOT_IMAGE}
|
2001-11-08 19:52:20 +03:00
|
|
|
vnconfig -v -c ${VND} ${MINIROOT_IMAGE}
|
2000-10-20 15:56:55 +04:00
|
|
|
mount ${VND_DEV} ${MOUNT_POINT}
|
|
|
|
(cd ${MOUNT_POINT}; \
|
|
|
|
tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .)
|
|
|
|
umount ${MOUNT_POINT}
|
2001-11-08 19:52:20 +03:00
|
|
|
vnconfig -u ${VND}
|
2000-10-20 15:56:55 +04:00
|
|
|
|
|
|
|
unconfig:
|
|
|
|
-umount -f ${MOUNT_POINT}
|
2001-11-08 19:52:20 +03:00
|
|
|
-vnconfig -u ${VND}
|
2000-10-20 15:56:55 +04:00
|
|
|
-/bin/rm -f ${INSTFS}
|
|
|
|
|
|
|
|
clean cleandir distclean:
|
|
|
|
/bin/rm -f *.core ${INSTFS}
|
|
|
|
|
2002-05-02 22:02:14 +04:00
|
|
|
release: check_RELEASEDIR .WAIT ${INSTFS}
|
|
|
|
${RELEASE_INSTALL} ${INSTFS} $(RELEASEDIR)/installation/bootfs
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|