NetBSD/distrib/sun2/miniroot/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.6 2002/04/22 21:17:57 fredette Exp $
2001-05-18 04:16:36 +04:00
TOP= ${.CURDIR}/..
.include <bsd.own.mk>
.include <bsd.kernobj.mk>
.include "${_SRC_TOP_}/distrib/Makefile.inc"
2001-05-18 04:16:36 +04:00
IMG= miniroot
IMAGE= ${IMG}
IMAGESIZE= 12m
MAKEFS_FLAGS= -o minfree=0,optimization=space,density=8k,cpg=16
2001-05-18 04:16:36 +04:00
KERNEL= ${KERNOBJDIR}/INSTALL/netbsd
2001-05-18 04:16:36 +04:00
WARNS= 1
DBG= -Os
2001-05-18 04:16:36 +04:00
LISTS= ${.CURDIR}/${IMG}.list
PARSELISTENV= TOPDIR=${TOP} KERNEL=${KERNEL}
MTREECONF= ${TOP}/common/${IMG}.tree
IMAGEENDIAN= be
MAKEDEVTARGETS= std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0 fd0
IMAGEDEPENDS= ${KERNEL} install.sub
2001-05-18 04:16:36 +04:00
realall: ${IMG} ib.stamp
ib.stamp: ${IMG}
${INSTALLBOOT} -v ${IMG} ${DESTDIR}/usr/mdec/bootxx /ufsboot
touch ib.stamp
2001-05-18 04:16:36 +04:00
install.sub : ${TOP}/../miniroot/install.sub
sed -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
2001-05-18 04:16:36 +04:00
${IMAGE}.gz: ${IMAGE}
gzip -c -9 < ${IMAGE} > ${IMAGE}.gz
2001-05-18 04:16:36 +04:00
.if !defined(RELEASEDIR)
release:
@echo setenv RELEASEDIR before doing that!
@false
.else # RELEASEDIR
release: ${IMAGE}.gz
-mkdir -p ${RELEASEDIR}/installation/miniroot
${RELINSTALL} ${IMAGE}.gz ${RELEASEDIR}/installation/miniroot
2001-05-18 04:16:36 +04:00
.endif # RELEASEDIR
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"
.include <bsd.prog.mk>