2008-10-26 02:15:28 +04:00
|
|
|
# $NetBSD: Makefile,v 1.11 2008/10/25 22:15:28 apb Exp $
|
2002-09-15 21:05:26 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
COMPATOBJ!= cd ${.CURDIR}/../compat && ${PRINTOBJDIR}
|
|
|
|
.-include "${COMPATOBJ}/defs.mk"
|
2001-09-22 08:15:19 +04:00
|
|
|
|
2002-12-08 23:19:56 +03:00
|
|
|
TIMESTAMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder
|
2001-09-22 08:15:19 +04:00
|
|
|
|
2002-09-15 21:05:26 +04:00
|
|
|
CLEANFILES+= lorder
|
|
|
|
|
2001-09-22 08:15:19 +04:00
|
|
|
.PATH: ${.CURDIR}/../../usr.bin/lorder
|
|
|
|
|
2001-09-22 09:02:13 +04:00
|
|
|
.include <bsd.hostprog.mk>
|
|
|
|
|
2001-09-22 08:15:19 +04:00
|
|
|
install: ${TIMESTAMP}
|
2002-09-15 21:05:26 +04:00
|
|
|
${TIMESTAMP}: lorder
|
2001-11-19 07:47:42 +03:00
|
|
|
${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET}
|
2002-09-15 21:05:26 +04:00
|
|
|
|
|
|
|
lorder: lorder.sh
|
2008-10-26 02:15:28 +04:00
|
|
|
${TOOL_SED} -e "s,/bin/sh,"${HOST_BSHELL:Q}",g" \
|
2007-01-14 19:32:23 +03:00
|
|
|
-e "s,{JOIN:=.*},{JOIN:="${TOOL_JOIN:Q}"}," \
|
|
|
|
-e "s,{MKTEMP:=.*},{MKTEMP:="${TOOL_MKTEMP:Q}"}," \
|
|
|
|
-e "s,{NM:=.*},{NM:="${NM:Q}"}," \
|
|
|
|
-e "s,{SED:=.*},{SED:="${TOOL_SED:Q}"}," \
|
|
|
|
< ${.ALLSRC} > ${.TARGET}
|
2002-09-15 21:05:26 +04:00
|
|
|
|
|
|
|
realall: lorder
|