Home | History | Annotate | Line # | Download | only in instfs
Makefile revision 1.6
      1 #	$NetBSD: Makefile,v 1.6 2002/03/05 21:23:30 thorpej Exp $
      2 #
      3 # instfs.tgz is the filesystem image for disk 2 of the floppy based
      4 # installation method.
      5 # It is constructed by tarring up the contents of the miniroot with
      6 # the exeption of the kernel and boot program.
      7 #
      8 
      9 TOP=		${.CURDIR}/..
     10 MINIROOT=	${.CURDIR}/../xminiroot
     11 
     12 .include "${TOP}/Makefile.inc"
     13 .include <bsd.own.mk>
     14 
     15 MINIROOT_DIR!=	cd ${MINIROOT} && ${PRINTOBJDIR}
     16 MINIROOT_IMAGE=	${MINIROOT_DIR}/miniroot.fs
     17 MINIROOT_KERNEL=${MINIROOT_DIR}/netbsd.INSTALL
     18 
     19 MOUNT_POINT?=	${MINIROOT_DIR}/mountpoint
     20 INSTFS?=	instfs.tgz
     21 
     22 all: ${INSTFS}
     23 
     24 ${INSTFS}: ${MINIROOT_IMAGE}
     25 	(cd ${MOUNT_POINT}; \
     26 		tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .)
     27 
     28 clean cleandir distclean:
     29 	/bin/rm -f *.core ${INSTFS}
     30 
     31 .ifndef RELEASEDIR
     32 release:
     33 	@echo setenv RELEASEDIR first
     34 	@false
     35 .else
     36 release: ${INSTFS}
     37 	cp ${INSTFS} $(RELEASEDIR)/installation/misc
     38 	gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz
     39 .endif	# RELEASEDIR check
     40 
     41 .include <bsd.obj.mk>
     42 .include <bsd.subdir.mk>
     43