1 # $NetBSD: Makefile,v 1.12 2012/12/02 12:44:06 apb Exp $
4 HOSTPROGNAME
= ${_TOOL_PREFIX}host-mkdep
5 HOST_BINDIR
= ${TOOLDIR}/bin
10 CLEANFILES
+= config.cache config.log config.status host-mkdep
12 .
include <bsd.hostprog.mk
>
14 # XXX: The configure script needs to use awk, but we can't pass
15 # AWK=${TOOL_AWK:Q} in CONFIGURE_ENV, because TOOL_AWK is not yet
16 # available at the time that host-mkdep is built. The configure script
17 # will try to find some other version of awk.
19 CONFIGURE_ENV
= CC
=${HOST_CC
:Q
}
22 host-mkdep
: configure host-mkdep.in
25 ${HOST_SH} ${.CURDIR
}/configure
--cache-file
=config.cache
28 # Use uninstalled copy of the install program
29 INSTALL_OBJ
!= cd
${NETBSDSRCDIR}/tools
/binstall
&& ${PRINTOBJDIR}
30 INSTALL
= ${INSTALL_OBJ}/xinstall
32 # Install rule, copied from src/tools/Makefile.host.
33 # We can't include Makefile.host because there is no HOST_SRCDIR
34 # corresponding to host-mkdep.
36 realinstall
: install.host
37 install.host
: ${HOST_BINDIR}/${HOSTPROGNAME}
38 ${HOST_BINDIR}/${HOSTPROGNAME}:: ${HOSTPROG}
40 mkdir
-p
${HOST_BINDIR}
41 ${HOST_INSTALL_FILE} -m
${BINMODE} ${HOSTPROG}${HOSTEXEEXT} ${.TARGET
}
43 .if
${MKUPDATE} == "no"
44 .PHONY
: ${HOST_BINDIR}/${HOSTPROGNAME}
47 # Run by hand, then "configure" script committed:
49 cd
${.CURDIR
} && ${TOOLDIR}/bin
/${_TOOL_PREFIX}autoconf