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 7 HOSTPROG= host-mkdep 8 HOSTPROGNAME= ${_TOOL_PREFIX}host-mkdep 9 HOST_BINDIR= ${TOOLDIR}/bin 10 11 SRCS= # empty 12 13 CLEANFILES+= 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 # 22 CONFIGURE_ENV= CC=${HOST_CC:Q} 23 24 realall: host-mkdep 25 host-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 32 INSTALL_OBJ!= cd ${NETBSDSRCDIR}/tools/binstall && ${PRINTOBJDIR} 33 INSTALL= ${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 # 39 realinstall: install.host 40 install.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: 51 regen: 52 cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf 53