2006-05-09 23:10:43 +04:00
|
|
|
# $NetBSD: Makefile,v 1.26 2006/05/09 19:10:43 he Exp $
|
2002-05-02 22:02:14 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
|
|
|
|
|
|
|
.include <bsd.kernobj.mk>
|
2000-08-10 18:38:51 +04:00
|
|
|
|
2002-05-07 18:41:36 +04:00
|
|
|
.include "${.CURDIR}/../instfs/Makefile.instfs"
|
|
|
|
IMAGE= miniroot.fs
|
2006-05-09 23:10:43 +04:00
|
|
|
IMAGESIZE= 8m
|
2003-07-10 14:33:58 +04:00
|
|
|
IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
|
2002-05-07 18:44:06 +04:00
|
|
|
${DESTDIR}/usr/mdec/bootblk
|
2002-05-07 18:41:36 +04:00
|
|
|
IMAGE_RELEASEDIR= installation/miniroot
|
2001-07-21 10:01:03 +04:00
|
|
|
|
2002-05-07 18:41:36 +04:00
|
|
|
CRUNCHBINDIR!= cd ${INSTFSDIR} && ${PRINTOBJDIR}
|
|
|
|
LISTS+= ${.CURDIR}/list.miniroot
|
|
|
|
IMAGEDEPENDS+= netbsd.gz
|
2001-07-21 10:01:03 +04:00
|
|
|
|
2002-05-07 18:41:36 +04:00
|
|
|
${CRUNCHBIN}: ${CRUNCHBINDIR}/${CRUNCHBIN}
|
2004-05-24 22:17:45 +04:00
|
|
|
mkdir -p sysinst
|
2004-04-22 01:19:51 +04:00
|
|
|
cp -p ${CRUNCHBINDIR}/sysinst/sysinstmsgs.* sysinst
|
2002-05-07 18:41:36 +04:00
|
|
|
cp ${.ALLSRC} ${.TARGET}
|
2000-08-10 18:38:51 +04:00
|
|
|
|
2002-05-07 18:41:36 +04:00
|
|
|
netbsd.gz: ${KERNOBJDIR}/GENERIC/netbsd
|
2002-05-08 11:57:09 +04:00
|
|
|
-rm -f ${.TARGET}
|
|
|
|
gzip -9c ${.ALLSRC} > ${.TARGET}
|
2000-08-10 18:38:51 +04:00
|
|
|
|
2004-07-02 07:11:26 +04:00
|
|
|
clean: localclean
|
|
|
|
|
|
|
|
localclean:
|
|
|
|
rm -rf sysinst
|
|
|
|
|
|
|
|
CLEANFILES+= ${CRUNCHBIN} netbsd.gz
|
2000-08-10 18:38:51 +04:00
|
|
|
|
2002-05-07 18:41:36 +04:00
|
|
|
.include "${DISTRIBDIR}/common/Makefile.makedev"
|
|
|
|
.include "${DISTRIBDIR}/common/Makefile.image"
|
2000-08-20 18:46:03 +04:00
|
|
|
|
2001-12-04 21:14:20 +03:00
|
|
|
.include <bsd.prog.mk>
|