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