Fix cross building case where the host is not a NetBSD host. We need

to set MAKE for the subshell that's used to populate the work tree.
It needs to be the the correct make (in the cross build case: nbmake +
args) so that when makeobsolete is run it can pickup this value.
Otherwise makeobsolete defaults to the host's make is used which might
not understand some of NetBSD make's constructs.

This fixes, mostly, the build of NetBSD/hpcmips on a FreeBSD-current
system.
This commit is contained in:
imp 2003-03-25 18:37:59 +00:00
parent 2a1daaf4ea
commit 7bd540a729

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.image,v 1.20 2003/03/11 07:18:38 lukem Exp $
# $NetBSD: Makefile.image,v 1.21 2003/03/25 18:37:59 imp Exp $
#
# Makefile snippet to build a tree from the provided lists,
# and make an ffs file system image from that tree
@ -45,7 +45,8 @@ ${WORKBUILT}: ${IMAGEDEPENDS} ${WORKSPEC} ${PARSELISTDEP} ${LISTS}
-rm -rf ${WORKDIR} ${WORKBUILT}
mkdir -m 755 ${WORKDIR}
${MTREE} -def ${WORKSPEC} -p ${WORKDIR}/ -UW
${PARSELIST} -v mode=populate ${LISTS} | sh -e ${POPULATE_DEBUG} \
${PARSELIST} -v mode=populate ${LISTS} | \
MAKE=${MAKE} sh -e ${POPULATE_DEBUG} \
&& touch ${WORKBUILT}
CLEANFILES+= ${WORKBUILT}