NetBSD/distrib/miniroot/Makefile

50 lines
1.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.58 2002/04/23 19:44:14 tv Exp $
.include <bsd.own.mk>
.include "${_SRC_TOP_}/distrib/Makefile.inc"
.include <bsd.kernobj.mk>
ARCHDIR= ${.CURDIR}/../${MACHINE}/miniroot
CRUNCHBIN= instbin
CRUNCHGEN_FLAGS= -d "${DBG}"
1996-05-27 16:39:01 +04:00
LISTS= ${.CURDIR}/list ${ARCHDIR}/list
MTREECONF= ${DISTRIBDIR}/common/mtree.common
IMAGE= miniroot.fs
IMAGEDEPENDS= ${CRUNCHBIN} install.sub install.sh upgrade.sh \
${KERNSRCDIR}/conf/osrelease.sh \
${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd \
${_SRC_TOP_}/etc/netconfig ${_SRC_TOP_}/etc/protocols \
${_SRC_TOP_}/etc/services
PARSELISTENV= ARCHDIR=${ARCHDIR:Q} \
DISTRIBREV=${DISTRIBREV:Q} \
DISTRIBVER=${DISTRIBVER:Q} \
KERNOBJDIR=${KERNOBJDIR:Q}
.include "${ARCHDIR}/Makefile.inc"
IMAGEBUILT= image.built
CLEANFILES+= ${IMAGEBUILT}
IMAGE_MD_POST?= true
realall: check_DESTDIR .WAIT ${IMAGEBUILT}
release: check_RELEASEDIR .WAIT ${IMAGEBUILT}
2000-04-17 01:27:00 +04:00
mkdir -p ${RELEASEDIR}/installation/miniroot
gzip -c -9 < ${.OBJDIR}/miniroot.fs \
> ${RELEASEDIR}/installation/miniroot/miniroot.fs.gz
${MAKESUMS} -t ${RELEASEDIR}/installation/miniroot miniroot.fs.gz
${IMAGEBUILT}: ${IMAGE}
${IMAGE_MD_POST} \
&& touch ${IMAGEBUILT}
1999-10-19 00:13:55 +04:00
.include "${DISTRIBDIR}/common/Makefile.crunch"
.if defined(MAKEDEVTARGETS)
.include "${DISTRIBDIR}/common/Makefile.makedev"
.endif
.include "${DISTRIBDIR}/common/Makefile.image"
.include <bsd.prog.mk>