Home | History | Annotate | Line # | Download | only in miniroot
Makefile revision 1.56
      1 #	$NetBSD: Makefile,v 1.56 2002/04/12 02:34:21 lukem Exp $
      2 
      3 .include <bsd.own.mk>
      4 .include "${_SRC_TOP_}/distrib/Makefile.inc"
      5 
      6 .include <bsd.kernobj.mk>
      7 
      8 ARCHDIR=	${.CURDIR}/../${MACHINE}/miniroot
      9 
     10 CRUNCHBIN=	instbin
     11 LISTS=		${.CURDIR}/list ${ARCHDIR}/list
     12 MTREECONF=	${DISTRIBDIR}/common/mtree.common
     13 IMAGE=		miniroot.fs
     14 IMAGEDEPENDS=	${CRUNCHBIN} install.sub install.sh upgrade.sh \
     15 		${KERNSRCDIR}/conf/osrelease.sh \
     16 		${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd \
     17 		${_SRC_TOP_}/etc/netconfig ${_SRC_TOP_}/etc/protocols \
     18 		${_SRC_TOP_}/etc/services
     19 PARSELISTENV=	ARCHDIR=${ARCHDIR:Q} \
     20 		DISTRIBREV=${DISTRIBREV:Q} \
     21 		DISTRIBVER=${DISTRIBVER:Q} \
     22 		KERNOBJDIR=${KERNOBJDIR:Q}
     23 
     24 .include "${ARCHDIR}/Makefile.inc"
     25 
     26 
     27 realall: check_DESTDIR .WAIT image
     28 
     29 release: check_RELEASEDIR .WAIT image
     30 	mkdir -p ${RELEASEDIR}/installation/miniroot
     31 	gzip -c -9 < ${.OBJDIR}/miniroot.fs \
     32 		> ${RELEASEDIR}/installation/miniroot/miniroot.fs.gz
     33 	${MAKESUMS} -t ${RELEASEDIR}/installation/miniroot miniroot.fs.gz
     34 
     35 image:	${IMAGE} image_md_post
     36 
     37 image_md_post:
     38 # nothing here; refer to machine-dependant ${ARCHDIR}/Makefile.inc
     39 
     40 
     41 .include "${DISTRIBDIR}/common/Makefile.crunch"
     42 .if defined(MAKEDEVTARGETS)
     43 .include "${DISTRIBDIR}/common/Makefile.makedev"
     44 .endif
     45 .include "${DISTRIBDIR}/common/Makefile.image"
     46 
     47 .include <bsd.prog.mk>
     48