2009-01-19 10:14:46 +03:00
|
|
|
# $NetBSD: Makefile,v 1.6 2009/01/19 07:14:46 jmmv Exp $
|
2007-11-12 17:54:43 +03:00
|
|
|
|
|
|
|
CLEANFILES+= atf-host-compile
|
|
|
|
CLEANFILES+= atf-host-compile.tmp
|
|
|
|
|
|
|
|
.include <bsd.hostprog.mk>
|
|
|
|
|
|
|
|
realall: atf-host-compile
|
|
|
|
atf-host-compile: atf-host-compile.sh
|
2007-11-24 21:44:00 +03:00
|
|
|
@echo "create atf-host-compile"; \
|
2008-10-26 18:54:19 +03:00
|
|
|
if [ x${HOST_SH:C,^/.*,/,} != x/ ]; then \
|
|
|
|
echo "HOST_SH must be an absolute path"; \
|
|
|
|
false; \
|
|
|
|
fi && \
|
2008-10-06 00:14:14 +04:00
|
|
|
${TOOL_SED} -e s,__ATF_PKGDATADIR__,${SRCDIR}/atf-sh,g \
|
2008-10-26 18:54:19 +03:00
|
|
|
-e s,__ATF_SHELL__,${HOST_SH},g \
|
2007-11-12 17:54:43 +03:00
|
|
|
<${SRCDIR}/tools/atf-host-compile.sh \
|
2008-10-06 00:14:14 +04:00
|
|
|
>atf-host-compile.tmp && \
|
|
|
|
chmod +x atf-host-compile.tmp && \
|
2007-11-12 17:54:43 +03:00
|
|
|
mv atf-host-compile.tmp atf-host-compile
|
|
|
|
|
|
|
|
# Install rule.
|
|
|
|
realinstall: install.host
|
|
|
|
install.host: ${TOOLDIR}/bin/${_TOOL_PREFIX}atf-compile
|
|
|
|
${TOOLDIR}/bin/${_TOOL_PREFIX}atf-compile:: atf-host-compile
|
|
|
|
${_MKTARGET_INSTALL}
|
|
|
|
mkdir -p ${TOOLDIR}/bin
|
|
|
|
${HOST_INSTALL_FILE} -m ${BINMODE} atf-host-compile ${.TARGET}
|
|
|
|
|
2009-01-19 10:14:46 +03:00
|
|
|
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
|
2007-11-12 17:54:43 +03:00
|
|
|
.PATH: ${SRCDIR}/tools
|