Make the 'tags' target work by borrowing stuff from sys/arch/i386/Makefile.
This commit is contained in:
parent
1a1d6a2158
commit
78e9d89046
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.7 2009/05/20 03:41:25 dyoung Exp $
|
||||
# $NetBSD: Makefile,v 1.8 2009/08/18 17:21:51 dyoung Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
@ -12,9 +12,12 @@
|
||||
|
||||
TXEN= ${SYSDIR}/arch/xen/tags
|
||||
|
||||
SXEN!= ${TOOL_AWK} '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
|
||||
SXEN!= ${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
|
||||
${SYSDIR}/arch/xen/conf/files.xen
|
||||
AXEN!= ${TOOL_AWK} '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
|
||||
SXEN+= ${SYSDIR}/arch/xen/include/*.h
|
||||
SXEN+= ${SYSDIR}/arch/xen/include/*/*.h
|
||||
SXEN+= ${SYSDIR}/arch/xen/include/*/*/*.h
|
||||
AXEN!= ${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
|
||||
${SYSDIR}/arch/xen/conf/files.xen
|
||||
AXEN+= ${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
|
||||
|
||||
@ -27,7 +30,7 @@ tags:
|
||||
${FINDCOMM} | xargs ctags -wadtf ${TXEN}
|
||||
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \
|
||||
${TOOL_SED} -e \
|
||||
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
||||
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
||||
>> ${TXEN}
|
||||
sort -o ${TXEN} ${TXEN}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user