zpool(8) uses tbl.
[netbsd-mini2440.git] / tools / atf-compile / Makefile
blobf22f6d29b69805dd1ea4756435188c042d2b2db7
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"; \
13 false; \
14 fi && \
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
22 # Install rule.
23 realinstall: install.host
24 install.host: ${TOOLDIR}/bin/${_TOOL_PREFIX}atf-compile
25 ${TOOLDIR}/bin/${_TOOL_PREFIX}atf-compile:: atf-host-compile
26 ${_MKTARGET_INSTALL}
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