If TOOL_AWK or TOOL_SED are undefined, then use awk or sed,

respectively.

Use ${FINDCOMM} to avoid too-long arguments lists.
This commit is contained in:
dyoung 2009-05-20 03:36:36 +00:00
parent 85d8d1fcdd
commit 3f9760ec8f

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2008/10/25 22:27:38 apb Exp $
# $NetBSD: Makefile,v 1.6 2009/05/20 03:36:36 dyoung Exp $
# Makefile for xen tags file
@ -10,9 +10,9 @@
TXEN= ${SYSDIR}/arch/xen/tags
SXEN!= ${TOOL_AWK} '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
SXEN!= ${TOOL_AWK:Uawk} '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
${SYSDIR}/arch/xen/conf/files.xen
AXEN!= ${TOOL_AWK} '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
AXEN!= ${TOOL_AWK:Uawk} '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
${SYSDIR}/arch/xen/conf/files.xen
AXEN+= ${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
@ -20,10 +20,11 @@ AXEN+= ${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
DXEN= xen ${XEN_MACHINE_ARCHS} include
tags:
rm -f ${TXEN}
-echo ${SXEN} ${COMM} | xargs ctags -wadtf ${TXEN}
-rm -f ${TXEN}
-echo ${SXEN} | xargs ctags -wadtf ${TXEN}
${FINDCOMM} | xargs ctags -wadtf ${TXEN}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \
${TOOL_SED} -e \
${TOOL_SED:Used} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TXEN}
sort -o ${TXEN} ${TXEN}