2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.12 2012/12/02 12:44:06 apb Exp $
|
2012-06-06 16:46:00 +02:00
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
HOSTPROG= host-mkdep
|
|
|
|
HOSTPROGNAME= ${_TOOL_PREFIX}host-mkdep
|
|
|
|
HOST_BINDIR= ${TOOLDIR}/bin
|
|
|
|
|
|
|
|
NOMAN= # defined
|
|
|
|
SRCS= # empty
|
2012-06-06 16:46:00 +02:00
|
|
|
|
|
|
|
CLEANFILES+= config.cache config.log config.status host-mkdep
|
|
|
|
|
|
|
|
.include <bsd.hostprog.mk>
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
# XXX: The configure script needs to use awk, but we can't pass
|
|
|
|
# AWK=${TOOL_AWK:Q} in CONFIGURE_ENV, because TOOL_AWK is not yet
|
|
|
|
# available at the time that host-mkdep is built. The configure script
|
|
|
|
# will try to find some other version of awk.
|
|
|
|
#
|
|
|
|
CONFIGURE_ENV= CC=${HOST_CC:Q}
|
2012-06-06 16:46:00 +02:00
|
|
|
|
|
|
|
realall: host-mkdep
|
|
|
|
host-mkdep: configure host-mkdep.in
|
|
|
|
-rm -f $@
|
2013-12-06 12:04:52 +01:00
|
|
|
${CONFIGURE_ENV} \
|
|
|
|
${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache
|
2012-06-06 16:46:00 +02:00
|
|
|
chmod +x $@
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
# Use uninstalled copy of the install program
|
|
|
|
INSTALL_OBJ!= cd ${NETBSDSRCDIR}/tools/binstall && ${PRINTOBJDIR}
|
|
|
|
INSTALL= ${INSTALL_OBJ}/xinstall
|
|
|
|
|
|
|
|
# Install rule, copied from src/tools/Makefile.host.
|
|
|
|
# We can't include Makefile.host because there is no HOST_SRCDIR
|
|
|
|
# corresponding to host-mkdep.
|
|
|
|
#
|
|
|
|
realinstall: install.host
|
|
|
|
install.host: ${HOST_BINDIR}/${HOSTPROGNAME}
|
|
|
|
${HOST_BINDIR}/${HOSTPROGNAME}:: ${HOSTPROG}
|
|
|
|
${_MKTARGET_INSTALL}
|
|
|
|
mkdir -p ${HOST_BINDIR}
|
|
|
|
${HOST_INSTALL_FILE} -m ${BINMODE} ${HOSTPROG}${HOSTEXEEXT} ${.TARGET}
|
|
|
|
|
|
|
|
.if ${MKUPDATE} == "no"
|
|
|
|
.PHONY: ${HOST_BINDIR}/${HOSTPROGNAME}
|
|
|
|
.endif
|
2012-06-06 16:46:00 +02:00
|
|
|
|
|
|
|
# Run by hand, then "configure" script committed:
|
|
|
|
regen:
|
|
|
|
cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf
|