Home | History | Annotate | Line # | Download | only in host-mkdep
Makefile revision 1.10.24.1
      1  1.10.24.1       tls #	$NetBSD: Makefile,v 1.10.24.1 2013/02/25 00:30:30 tls Exp $
      2        1.1        tv 
      3  1.10.24.1       tls HOSTPROG= 	host-mkdep
      4  1.10.24.1       tls HOSTPROGNAME=	${_TOOL_PREFIX}host-mkdep
      5  1.10.24.1       tls HOST_BINDIR=	${TOOLDIR}/bin
      6  1.10.24.1       tls 
      7  1.10.24.1       tls NOMAN=	# defined
      8  1.10.24.1       tls 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.10.24.1       tls # XXX: The configure script needs to use awk, but we can't pass
     15  1.10.24.1       tls # AWK=${TOOL_AWK:Q} in CONFIGURE_ENV, because TOOL_AWK is not yet
     16  1.10.24.1       tls # available at the time that host-mkdep is built.  The configure script
     17  1.10.24.1       tls # will try to find some other version of awk.
     18  1.10.24.1       tls #
     19  1.10.24.1       tls 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.10.24.1       tls 	${CONFIGURE_ENV} \
     25  1.10.24.1       tls 	    ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache
     26        1.7  christos 	chmod +x $@
     27        1.1        tv 
     28  1.10.24.1       tls # Use uninstalled copy of the install program
     29  1.10.24.1       tls INSTALL_OBJ!=	cd ${NETBSDSRCDIR}/tools/binstall && ${PRINTOBJDIR}
     30  1.10.24.1       tls INSTALL=	${INSTALL_OBJ}/xinstall
     31  1.10.24.1       tls 
     32  1.10.24.1       tls # Install rule, copied from src/tools/Makefile.host.
     33  1.10.24.1       tls # We can't include Makefile.host because there is no HOST_SRCDIR
     34  1.10.24.1       tls # corresponding to host-mkdep.
     35  1.10.24.1       tls #
     36  1.10.24.1       tls realinstall: install.host
     37  1.10.24.1       tls install.host: ${HOST_BINDIR}/${HOSTPROGNAME}
     38  1.10.24.1       tls ${HOST_BINDIR}/${HOSTPROGNAME}:: ${HOSTPROG}
     39  1.10.24.1       tls 	${_MKTARGET_INSTALL}
     40  1.10.24.1       tls 	mkdir -p ${HOST_BINDIR}
     41  1.10.24.1       tls 	${HOST_INSTALL_FILE} -m ${BINMODE} ${HOSTPROG}${HOSTEXEEXT} ${.TARGET}
     42  1.10.24.1       tls 
     43  1.10.24.1       tls .if ${MKUPDATE} == "no"
     44  1.10.24.1       tls .PHONY:		${HOST_BINDIR}/${HOSTPROGNAME}
     45  1.10.24.1       tls .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