1#         $NetBSD: Makefile,v 1.8 2018/05/01 19:59:46 christos Exp $
2
3.include <bsd.hostinit.mk>
4
5.PATH.sh: ${.CURDIR}/../../usr.bin/genassym
6
7.-include "${TOOLDIR}/share/compat/defs.mk"
8
9TIMESTAMP=          ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym
10
11CLEANFILES+=        genassym
12
13.include <bsd.hostprog.mk>
14
15install: ${TIMESTAMP}
16${TIMESTAMP}: genassym
17          ${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET}
18
19genassym: genassym.sh
20          ${TOOL_SED} -e "s,/bin/sh,${HOST_BSHELL},g" \
21              -e "s,{AWK:=.*},{AWK:="${TOOL_AWK:Q}"}," \
22                    < ${.ALLSRC} > ${.TARGET}
23
24realall: genassym
25