Makefile.images revision 1.1
1# $NetBSD: Makefile.images,v 1.1 2002/04/12 21:11:47 leo Exp $ 2 3.include <bsd.own.mk> 4.include "${_SRC_TOP_}/distrib/Makefile.inc" 5 6.include <bsd.kernobj.mk> 7 8CRUNCHBIN= instbin 9LISTS= ${.CURDIR}/list ${.CURDIR}/../common/list.images 10MTREECONF= ${DISTRIBDIR}/common/mtree.common 11IMAGEDEPENDS+= ${CRUNCHBIN} ${KERNSRCDIR}/conf/osrelease.sh \ 12 ${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd 13PARSELISTENV= ARCHDIR=${ARCHDIR:Q} \ 14 DISTRIBREV=${DISTRIBREV:Q} \ 15 DISTRIBVER=${DISTRIBVER:Q} \ 16 KERNOBJDIR=${KERNOBJDIR:Q} 17MAKESUMS= CKSUM=${CKSUM:Q} sh ${DISTRIBDIR}/sets/makesums 18 19.if defined(USE_SYSINST) 20LISTS+= ${DISTRIBDIR}/common/list.sysinst 21.endif 22 23realall: check_DESTDIR .WAIT image 24 @true 25 26release: check_RELEASEDIR .WAIT image 27 mkdir -p ${RELEASEDIR}/installation/miniroot 28 gzip -c -9 < ${.OBJDIR}/${IMAGE} \ 29 > ${RELEASEDIR}/installation/miniroot/${IMAGE}.gz 30 ${MAKESUMS} -t ${RELEASEDIR}/installation/miniroot ${IMAGE}.gz 31 32image: ${IMAGE} image_md_post 33 34image_md_post: 35# nothing here; refer to machine-dependant ${ARCHDIR}/Makefile.inc 36 37# 38# Using libhack:opendir() causes linking errors 39# 40NOLIBHACKOPENDIR=1 41 42# Use stubs to eliminate some large stuff from libc 43HACKSRC=${_SRC_TOP_}/distrib/utils/libhack 44.include "${HACKSRC}/Makefile.inc" 45 46# This is listed in instbin.conf but is built here. 47${CRUNCHBIN}: libhack.o 48 49 50.include "${DISTRIBDIR}/common/Makefile.crunch" 51.if defined(MAKEDEVTARGETS) 52.include "${DISTRIBDIR}/common/Makefile.makedev" 53.endif 54.include "${DISTRIBDIR}/common/Makefile.image" 55 56.include <bsd.prog.mk> 57