1# $NetBSD: Makefile,v 1.69 2019/12/29 18:26:17 christos Exp $ 2 3.include <bsd.own.mk> 4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5 6.include <bsd.kernobj.mk> 7 8ARCHDIR= ${.CURDIR}/../${MACHINE}/miniroot 9 10CRUNCHBIN= instbin 11LISTS= ${.CURDIR}/list ${ARCHDIR}/list 12MTREECONF= ${DISTRIBDIR}/common/mtree.common 13IMAGE= miniroot.fs 14IMAGEDEPENDS= ${CRUNCHBIN} install.sub install.sh upgrade.sh \ 15 ${KERNSRCDIR}/conf/osrelease.sh \ 16 ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ 17 ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 18 ${DISTRIBDIR}/common/services 19PARSELISTENV= ARCHDIR=${ARCHDIR:Q} \ 20 DISTRIBREV=${DISTRIBREV:Q} \ 21 DISTRIBVER=${DISTRIBVER:Q} \ 22 KERNOBJDIR=${KERNOBJDIR:Q} 23 24IMAGE_RELEASEDIR= installation/miniroot 25 26.include "${ARCHDIR}/Makefile.inc" 27 28# Use stubs to eliminate some large stuff from libc 29HACKSRC= ${DISTRIBDIR}/utils/libhack 30.include "${HACKSRC}/Makefile.inc" 31${CRUNCHBIN}: libhack.o 32 33.include "${DISTRIBDIR}/common/Makefile.crunch" 34.if defined(MAKEDEVTARGETS) 35.include "${DISTRIBDIR}/common/Makefile.makedev" 36.endif 37.include "${DISTRIBDIR}/common/Makefile.image" 38 39release:: check_RELEASEDIR .WAIT ${IMAGE}.gz 40 ${MAKESUMS} -t ${RELEASEDIR}/${RELEASEMACHINEDIR}/${IMAGE_RELEASEDIR} ${IMAGE}.gz 41 42.include <bsd.prog.mk> 43