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