Makefile revision 1.14
1# $NetBSD: Makefile,v 1.14 2019/01/27 02:08:50 pgoyette Exp $ 2 3.include <bsd.hostinit.mk> 4 5.include <bsd.hostinit.mk> 6 7HOSTPROG= host-mkdep 8HOSTPROGNAME= ${_TOOL_PREFIX}host-mkdep 9HOST_BINDIR= ${TOOLDIR}/bin 10 11SRCS= # empty 12 13CLEANFILES+= config.cache config.log config.status host-mkdep 14 15.include <bsd.hostprog.mk> 16 17# XXX: The configure script needs to use awk, but we can't pass 18# AWK=${TOOL_AWK:Q} in CONFIGURE_ENV, because TOOL_AWK is not yet 19# available at the time that host-mkdep is built. The configure script 20# will try to find some other version of awk. 21# 22CONFIGURE_ENV= CC=${HOST_CC:Q} 23 24realall: host-mkdep 25host-mkdep: configure host-mkdep.in 26 -rm -f $@ 27 ${CONFIGURE_ENV} \ 28 ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache 29 chmod +x $@ 30 31# Use uninstalled copy of the install program 32INSTALL_OBJ!= cd ${NETBSDSRCDIR}/tools/binstall && ${PRINTOBJDIR} 33INSTALL= ${INSTALL_OBJ}/xinstall 34 35# Install rule, copied from src/tools/Makefile.host. 36# We can't include Makefile.host because there is no HOST_SRCDIR 37# corresponding to host-mkdep. 38# 39realinstall: install.host 40install.host: ${HOST_BINDIR}/${HOSTPROGNAME} 41${HOST_BINDIR}/${HOSTPROGNAME}:: ${HOSTPROG} 42 ${_MKTARGET_INSTALL} 43 mkdir -p ${HOST_BINDIR} 44 ${HOST_INSTALL_FILE} -m ${BINMODE} ${HOSTPROG}${HOSTEXEEXT} ${.TARGET} 45 46.if ${MKUPDATE} == "no" 47.PHONY: ${HOST_BINDIR}/${HOSTPROGNAME} 48.endif 49 50# Run by hand, then "configure" script committed: 51regen: 52 cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf 53