2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.6 2012/12/02 12:48:32 apb Exp $
|
2012-06-06 16:46:00 +02:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.PATH.sh: ${.CURDIR}/../../usr.bin/genassym
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.-include "${TOOLDIR}/share/compat/defs.mk"
|
2012-06-06 16:46:00 +02:00
|
|
|
|
|
|
|
TIMESTAMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym
|
|
|
|
|
|
|
|
CLEANFILES+= genassym
|
|
|
|
|
|
|
|
.include <bsd.hostprog.mk>
|
|
|
|
|
|
|
|
install: ${TIMESTAMP}
|
|
|
|
${TIMESTAMP}: genassym
|
|
|
|
${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET}
|
|
|
|
|
|
|
|
genassym: genassym.sh
|
|
|
|
${TOOL_SED} -e "s,/bin/sh,${HOST_BSHELL},g" \
|
|
|
|
-e "s,{AWK:=.*},{AWK:="${TOOL_AWK:Q}"}," \
|
|
|
|
< ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
realall: genassym
|