# $NetBSD: Makefile,v 1.9 2010/03/31 00:00:33 dyoung Exp $ .include <bsd.own.mk> # Makefile for xen tags file .include "../../kern/Make.tags.inc" .ifmake tags .include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc" .endif TXEN= ${SYSDIR}/arch/xen/tags SXEN!= ${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \ ${SYSDIR}/arch/xen/conf/files.xen SXEN+= ${SYSDIR}/arch/xen/include/*.h SXEN+= ${SYSDIR}/arch/xen/include/*/*.h SXEN+= ${SYSDIR}/arch/xen/include/*/*/*.h SXEN+= ${SYSDIR}/arch/x86/x86/*.[ch] \ ${SYSDIR}/arch/x86/acpi/*.[ch] \ ${SYSDIR}/arch/x86/include/*.h \ ${SYSDIR}/arch/x86/isa/*.[ch] \ ${SYSDIR}/arch/x86/pci/*.[ch] AXEN!= ${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \ ${SYSDIR}/arch/xen/conf/files.xen #AXEN+= ${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS] # Directories in which to place tags links DXEN= xen ${XEN_MACHINE_ARCHS} include tags: -rm -f ${TXEN} -echo ${SXEN} | xargs ctags -wadtf ${TXEN} ${FINDCOMM} | xargs ctags -wadtf ${TXEN} egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \ ${TOOL_SED} -e \ "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ >> ${TXEN} sort -o ${TXEN} ${TXEN} links: -for i in ${DXEN}; do \ (cd $$i && rm -f tags; ln -s ../tags tags); done SUBDIR= compile include .include <bsd.subdir.mk> |