Module Name: src
Committed By: dyoung
Date: Tue Aug 18 17:21:51 UTC 2009
Modified Files:
src/sys/arch/xen: Makefile
Log Message:
Make the 'tags' target work by borrowing stuff from sys/arch/i386/Makefile.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/xen/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/xen/Makefile
diff -u src/sys/arch/xen/Makefile:1.7 src/sys/arch/xen/Makefile:1.8
--- src/sys/arch/xen/Makefile:1.7 Wed May 20 03:41:25 2009
+++ src/sys/arch/xen/Makefile Tue Aug 18 17:21:51 2009
@@ -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 @@
${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}