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