Makefile revision 1.13
11.13Schristos# $NetBSD: Makefile,v 1.13 2018/05/01 19:59:47 christos Exp $ 21.13Schristos 31.13Schristos.include <bsd.hostinit.mk> 41.1Stv 51.12SapbHOSTPROG= host-mkdep 61.12SapbHOSTPROGNAME= ${_TOOL_PREFIX}host-mkdep 71.12SapbHOST_BINDIR= ${TOOLDIR}/bin 81.12Sapb 91.12SapbSRCS= # empty 101.1Stv 111.1StvCLEANFILES+= config.cache config.log config.status host-mkdep 121.1Stv 131.1Stv.include <bsd.hostprog.mk> 141.1Stv 151.11Sapb# XXX: The configure script needs to use awk, but we can't pass 161.11Sapb# AWK=${TOOL_AWK:Q} in CONFIGURE_ENV, because TOOL_AWK is not yet 171.11Sapb# available at the time that host-mkdep is built. The configure script 181.11Sapb# will try to find some other version of awk. 191.11Sapb# 201.11SapbCONFIGURE_ENV= CC=${HOST_CC:Q} 211.10Sapb 221.1Stvrealall: host-mkdep 231.1Stvhost-mkdep: configure host-mkdep.in 241.1Stv -rm -f $@ 251.11Sapb ${CONFIGURE_ENV} \ 261.11Sapb ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache 271.7Schristos chmod +x $@ 281.1Stv 291.12Sapb# Use uninstalled copy of the install program 301.12SapbINSTALL_OBJ!= cd ${NETBSDSRCDIR}/tools/binstall && ${PRINTOBJDIR} 311.12SapbINSTALL= ${INSTALL_OBJ}/xinstall 321.12Sapb 331.12Sapb# Install rule, copied from src/tools/Makefile.host. 341.12Sapb# We can't include Makefile.host because there is no HOST_SRCDIR 351.12Sapb# corresponding to host-mkdep. 361.12Sapb# 371.12Sapbrealinstall: install.host 381.12Sapbinstall.host: ${HOST_BINDIR}/${HOSTPROGNAME} 391.12Sapb${HOST_BINDIR}/${HOSTPROGNAME}:: ${HOSTPROG} 401.12Sapb ${_MKTARGET_INSTALL} 411.12Sapb mkdir -p ${HOST_BINDIR} 421.12Sapb ${HOST_INSTALL_FILE} -m ${BINMODE} ${HOSTPROG}${HOSTEXEEXT} ${.TARGET} 431.12Sapb 441.12Sapb.if ${MKUPDATE} == "no" 451.12Sapb.PHONY: ${HOST_BINDIR}/${HOSTPROGNAME} 461.12Sapb.endif 471.1Stv 481.1Stv# Run by hand, then "configure" script committed: 491.1Stvregen: 501.6Sthorpej cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf 51