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