Home | History | Annotate | Line # | Download | only in instfs
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 2002/01/20 05:57:10 mrg 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 
     14 MINIROOT_DIR!=cd ${MINIROOT}; \
     15 		printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | \
     16 		${MAKE} -s -f-
     17 MINIROOT_IMAGE=	${MINIROOT_DIR}/miniroot.fs
     18 MINIROOT_KERNEL=${MINIROOT_DIR}/netbsd.INSTALL
     19 
     20 MOUNT_POINT?=	${MINIROOT_DIR}/mountpoint
     21 INSTFS?=	instfs.tgz
     22 
     23 all: ${INSTFS}
     24 
     25 ${INSTFS}: ${MINIROOT_IMAGE}
     26 	(cd ${MOUNT_POINT}; \
     27 		tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .)
     28 
     29 clean cleandir distclean:
     30 	/bin/rm -f *.core ${INSTFS}
     31 
     32 .ifndef RELEASEDIR
     33 release:
     34 	@echo setenv RELEASEDIR first
     35 	@false
     36 .else
     37 release: ${INSTFS}
     38 	cp ${INSTFS} $(RELEASEDIR)/installation/misc
     39 	gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz
     40 .endif	# RELEASEDIR check
     41 
     42 .include <bsd.obj.mk>
     43 .include <bsd.subdir.mk>
     44