1 # $NetBSD: Makefile,v 1.5 2008/10/26 15:54:19 apb Exp $
3 CLEANFILES
+= atf-host-compile
4 CLEANFILES
+= atf-host-compile.tmp
6 .
include <bsd.hostprog.mk
>
8 realall
: atf-host-compile
9 atf-host-compile
: atf-host-compile.sh
10 @echo
"create atf-host-compile"; \
11 if
[ x
${HOST_SH
:C
,^
/.
*,/,} != x
/ ]; then \
12 echo
"HOST_SH must be an absolute path"; \
15 ${TOOL_SED} -e s
,__ATF_PKGDATADIR__
,${SRCDIR}/atf-sh
,g \
16 -e s
,__ATF_SHELL__
,${HOST_SH},g \
17 <${SRCDIR}/tools
/atf-host-compile.sh \
18 >atf-host-compile.tmp
&& \
19 chmod
+x atf-host-compile.tmp
&& \
20 mv atf-host-compile.tmp atf-host-compile
23 realinstall
: install.host
24 install.host
: ${TOOLDIR}/bin
/${_TOOL_PREFIX}atf-compile
25 ${TOOLDIR}/bin
/${_TOOL_PREFIX}atf-compile
:: atf-host-compile
27 mkdir
-p
${TOOLDIR}/bin
28 ${HOST_INSTALL_FILE} -m
${BINMODE} atf-host-compile
${.TARGET
}
30 SRCDIR
= ${NETBSDSRCDIR}/external
/bsd
/atf
/dist
31 .PATH
: ${SRCDIR}/tools