1# $NetBSD: Makefile,v 1.10 2008/10/19 22:05:23 apb Exp $ 2 3TIMESTAMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}host-mkdep 4 5CLEANFILES+= config.cache config.log config.status host-mkdep 6 7.include <bsd.hostprog.mk> 8 9# When host-mkdep is built, TOOL_AWK is not yet available, so we do not 10# pass AWK=${TOOL_AWK:Q} to configure; we allow configure to find awk 11# for itself (or complain if it can't find awk). 12 13realall: host-mkdep 14host-mkdep: configure host-mkdep.in 15 -rm -f $@ 16 CC=${HOST_CC:Q} ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache 17 chmod +x $@ 18 19# This is the only program that comes before binstall. 20install: ${TIMESTAMP} 21${TIMESTAMP}: host-mkdep 22 mkdir -p ${TOOLDIR}/bin 23 cp host-mkdep $@ 24 chmod +x $@ 25 26# Run by hand, then "configure" script committed: 27regen: 28 cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf 29