50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.55 2002/04/10 16:14:11 lukem Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
.include "${_SRC_TOP_}/distrib/Makefile.inc"
|
|
|
|
.include <bsd.kernobj.mk>
|
|
|
|
ARCHDIR= ${.CURDIR}/../${MACHINE}/miniroot
|
|
|
|
CRUNCHBIN= instbin
|
|
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}
|
|
MAKESUMS= CKSUM=${CKSUM:Q} sh ${DISTRIBDIR}/sets/makesums
|
|
|
|
.include "${ARCHDIR}/Makefile.inc"
|
|
|
|
|
|
realall: check_DESTDIR .WAIT image
|
|
@true
|
|
|
|
release: check_RELEASEDIR .WAIT image
|
|
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
|
|
|
|
image: ${IMAGE} image_md_post
|
|
|
|
image_md_post:
|
|
# nothing here; refer to machine-dependant ${ARCHDIR}/Makefile.inc
|
|
|
|
|
|
.include "${DISTRIBDIR}/common/Makefile.crunch"
|
|
.if defined(MAKEDEVTARGETS)
|
|
.include "${DISTRIBDIR}/common/Makefile.makedev"
|
|
.endif
|
|
.include "${DISTRIBDIR}/common/Makefile.image"
|
|
|
|
.include <bsd.prog.mk>
|