2002-04-23 23:44:14 +04:00
|
|
|
# $NetBSD: Makefile,v 1.58 2002/04/23 19:44:14 tv Exp $
|
1995-12-19 01:47:26 +03:00
|
|
|
|
1997-01-08 10:22:43 +03:00
|
|
|
.include <bsd.own.mk>
|
2002-04-10 20:14:11 +04:00
|
|
|
.include "${_SRC_TOP_}/distrib/Makefile.inc"
|
|
|
|
|
2000-05-02 10:45:24 +04:00
|
|
|
.include <bsd.kernobj.mk>
|
1997-01-08 10:22:43 +03:00
|
|
|
|
1995-12-19 01:47:26 +03:00
|
|
|
ARCHDIR= ${.CURDIR}/../${MACHINE}/miniroot
|
|
|
|
|
2002-03-06 15:04:48 +03:00
|
|
|
CRUNCHBIN= instbin
|
2002-04-23 23:44:14 +04:00
|
|
|
CRUNCHGEN_FLAGS= -d "${DBG}"
|
1996-05-27 16:39:01 +04:00
|
|
|
LISTS= ${.CURDIR}/list ${ARCHDIR}/list
|
2002-03-06 15:04:48 +03:00
|
|
|
MTREECONF= ${DISTRIBDIR}/common/mtree.common
|
|
|
|
IMAGE= miniroot.fs
|
|
|
|
IMAGEDEPENDS= ${CRUNCHBIN} install.sub install.sh upgrade.sh \
|
2002-03-18 01:30:31 +03:00
|
|
|
${KERNSRCDIR}/conf/osrelease.sh \
|
2002-03-06 15:04:48 +03:00
|
|
|
${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd \
|
|
|
|
${_SRC_TOP_}/etc/netconfig ${_SRC_TOP_}/etc/protocols \
|
|
|
|
${_SRC_TOP_}/etc/services
|
2002-03-16 04:32:21 +03:00
|
|
|
PARSELISTENV= ARCHDIR=${ARCHDIR:Q} \
|
|
|
|
DISTRIBREV=${DISTRIBREV:Q} \
|
|
|
|
DISTRIBVER=${DISTRIBVER:Q} \
|
|
|
|
KERNOBJDIR=${KERNOBJDIR:Q}
|
2000-11-01 10:57:55 +03:00
|
|
|
|
2002-03-06 15:04:48 +03:00
|
|
|
.include "${ARCHDIR}/Makefile.inc"
|
1995-12-19 01:47:26 +03:00
|
|
|
|
2002-04-12 07:21:09 +04:00
|
|
|
IMAGEBUILT= image.built
|
|
|
|
CLEANFILES+= ${IMAGEBUILT}
|
|
|
|
IMAGE_MD_POST?= true
|
1995-12-19 01:47:26 +03:00
|
|
|
|
2002-04-12 07:21:09 +04:00
|
|
|
realall: check_DESTDIR .WAIT ${IMAGEBUILT}
|
1995-12-19 01:47:26 +03:00
|
|
|
|
2002-04-12 07:21:09 +04:00
|
|
|
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
|
2002-04-12 06:34:21 +04:00
|
|
|
${MAKESUMS} -t ${RELEASEDIR}/installation/miniroot miniroot.fs.gz
|
2000-05-02 10:45:24 +04:00
|
|
|
|
2002-04-12 07:21:09 +04:00
|
|
|
${IMAGEBUILT}: ${IMAGE}
|
|
|
|
${IMAGE_MD_POST} \
|
|
|
|
&& touch ${IMAGEBUILT}
|
1999-10-19 00:13:55 +04:00
|
|
|
|
2002-03-06 15:04:48 +03:00
|
|
|
.include "${DISTRIBDIR}/common/Makefile.crunch"
|
|
|
|
.if defined(MAKEDEVTARGETS)
|
|
|
|
.include "${DISTRIBDIR}/common/Makefile.makedev"
|
|
|
|
.endif
|
|
|
|
.include "${DISTRIBDIR}/common/Makefile.image"
|
1995-12-19 01:47:26 +03:00
|
|
|
|
2002-03-06 15:04:48 +03:00
|
|
|
.include <bsd.prog.mk>
|