1 1.11 apb # $NetBSD: Makefile,v 1.11 2012/12/02 12:21:51 apb Exp $ 2 1.1 tv 3 1.6 thorpej TIMESTAMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}host-mkdep 4 1.1 tv 5 1.1 tv CLEANFILES+= config.cache config.log config.status host-mkdep 6 1.1 tv 7 1.1 tv .include <bsd.hostprog.mk> 8 1.1 tv 9 1.11 apb # XXX: The configure script needs to use awk, but we can't pass 10 1.11 apb # AWK=${TOOL_AWK:Q} in CONFIGURE_ENV, because TOOL_AWK is not yet 11 1.11 apb # available at the time that host-mkdep is built. The configure script 12 1.11 apb # will try to find some other version of awk. 13 1.11 apb # 14 1.11 apb CONFIGURE_ENV= CC=${HOST_CC:Q} 15 1.10 apb 16 1.1 tv realall: host-mkdep 17 1.1 tv host-mkdep: configure host-mkdep.in 18 1.1 tv -rm -f $@ 19 1.11 apb ${CONFIGURE_ENV} \ 20 1.11 apb ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache 21 1.7 christos chmod +x $@ 22 1.1 tv 23 1.1 tv # This is the only program that comes before binstall. 24 1.1 tv install: ${TIMESTAMP} 25 1.1 tv ${TIMESTAMP}: host-mkdep 26 1.5 tv mkdir -p ${TOOLDIR}/bin 27 1.5 tv cp host-mkdep $@ 28 1.1 tv chmod +x $@ 29 1.1 tv 30 1.1 tv # Run by hand, then "configure" script committed: 31 1.1 tv regen: 32 1.6 thorpej cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf 33