2002-03-06 00:23:28 +03:00
|
|
|
# $NetBSD: Makefile,v 1.6 2002/03/05 21:23:30 thorpej Exp $
|
2001-08-23 19:50:09 +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.
|
|
|
|
#
|
|
|
|
|
|
|
|
TOP= ${.CURDIR}/..
|
|
|
|
MINIROOT= ${.CURDIR}/../xminiroot
|
|
|
|
|
|
|
|
.include "${TOP}/Makefile.inc"
|
2002-03-06 00:23:28 +03:00
|
|
|
.include <bsd.own.mk>
|
2001-08-23 19:50:09 +04:00
|
|
|
|
2002-03-06 00:16:51 +03:00
|
|
|
MINIROOT_DIR!= cd ${MINIROOT} && ${PRINTOBJDIR}
|
2001-08-23 20:59:33 +04:00
|
|
|
MINIROOT_IMAGE= ${MINIROOT_DIR}/miniroot.fs
|
|
|
|
MINIROOT_KERNEL=${MINIROOT_DIR}/netbsd.INSTALL
|
2001-08-23 19:50:09 +04:00
|
|
|
|
2002-01-20 08:57:10 +03:00
|
|
|
MOUNT_POINT?= ${MINIROOT_DIR}/mountpoint
|
|
|
|
INSTFS?= instfs.tgz
|
|
|
|
|
2001-08-23 19:50:09 +04:00
|
|
|
all: ${INSTFS}
|
|
|
|
|
|
|
|
${INSTFS}: ${MINIROOT_IMAGE}
|
|
|
|
(cd ${MOUNT_POINT}; \
|
|
|
|
tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .)
|
|
|
|
|
|
|
|
clean cleandir distclean:
|
|
|
|
/bin/rm -f *.core ${INSTFS}
|
|
|
|
|
|
|
|
.ifndef RELEASEDIR
|
|
|
|
release:
|
|
|
|
@echo setenv RELEASEDIR first
|
|
|
|
@false
|
|
|
|
.else
|
|
|
|
release: ${INSTFS}
|
|
|
|
cp ${INSTFS} $(RELEASEDIR)/installation/misc
|
2001-08-23 20:59:33 +04:00
|
|
|
gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz
|
2001-08-23 19:50:09 +04:00
|
|
|
.endif # RELEASEDIR check
|
|
|
|
|
|
|
|
.include <bsd.obj.mk>
|
|
|
|
.include <bsd.subdir.mk>
|