| @@ -1,39 +1,41 @@ | | | @@ -1,39 +1,41 @@ |
1 | # $NetBSD: Makefile,v 1.6 2009/05/20 03:36:36 dyoung Exp $ | | 1 | # $NetBSD: Makefile,v 1.7 2009/05/20 03:41:25 dyoung Exp $ |
| | | 2 | |
| | | 3 | .include <bsd.own.mk> |
2 | | | 4 | |
3 | # Makefile for xen tags file | | 5 | # Makefile for xen tags file |
4 | | | 6 | |
5 | .include "../../kern/Make.tags.inc" | | 7 | .include "../../kern/Make.tags.inc" |
6 | | | 8 | |
7 | .ifmake tags | | 9 | .ifmake tags |
8 | .include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc" | | 10 | .include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc" |
9 | .endif | | 11 | .endif |
10 | | | 12 | |
11 | TXEN= ${SYSDIR}/arch/xen/tags | | 13 | TXEN= ${SYSDIR}/arch/xen/tags |
12 | | | 14 | |
13 | SXEN!= ${TOOL_AWK:Uawk} '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \ | | 15 | SXEN!= ${TOOL_AWK} '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \ |
14 | ${SYSDIR}/arch/xen/conf/files.xen | | 16 | ${SYSDIR}/arch/xen/conf/files.xen |
15 | AXEN!= ${TOOL_AWK:Uawk} '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \ | | 17 | AXEN!= ${TOOL_AWK} '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \ |
16 | ${SYSDIR}/arch/xen/conf/files.xen | | 18 | ${SYSDIR}/arch/xen/conf/files.xen |
17 | AXEN+= ${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS] | | 19 | AXEN+= ${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS] |
18 | | | 20 | |
19 | # Directories in which to place tags links | | 21 | # Directories in which to place tags links |
20 | DXEN= xen ${XEN_MACHINE_ARCHS} include | | 22 | DXEN= xen ${XEN_MACHINE_ARCHS} include |
21 | | | 23 | |
22 | tags: | | 24 | tags: |
23 | -rm -f ${TXEN} | | 25 | -rm -f ${TXEN} |
24 | -echo ${SXEN} | xargs ctags -wadtf ${TXEN} | | 26 | -echo ${SXEN} | xargs ctags -wadtf ${TXEN} |
25 | ${FINDCOMM} | xargs ctags -wadtf ${TXEN} | | 27 | ${FINDCOMM} | xargs ctags -wadtf ${TXEN} |
26 | egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \ | | 28 | egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \ |
27 | ${TOOL_SED:Used} -e \ | | 29 | ${TOOL_SED} -e \ |
28 | "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ | | 30 | "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ |
29 | >> ${TXEN} | | 31 | >> ${TXEN} |
30 | sort -o ${TXEN} ${TXEN} | | 32 | sort -o ${TXEN} ${TXEN} |
31 | | | 33 | |
32 | links: | | 34 | links: |
33 | -for i in ${DXEN}; do \ | | 35 | -for i in ${DXEN}; do \ |
34 | (cd $$i && rm -f tags; ln -s ../tags tags); done | | 36 | (cd $$i && rm -f tags; ln -s ../tags tags); done |
35 | | | 37 | |
36 | | | 38 | |
37 | SUBDIR= compile include | | 39 | SUBDIR= compile include |
38 | | | 40 | |
39 | .include <bsd.subdir.mk> | | 41 | .include <bsd.subdir.mk> |