Makefile revision 1.9
11.9Sdyoung# $NetBSD: Makefile,v 1.9 2010/03/31 00:00:33 dyoung Exp $ 21.7Sdyoung 31.7Sdyoung.include <bsd.own.mk> 41.1Scl 51.1Scl# Makefile for xen tags file 61.1Scl 71.1Scl.include "../../kern/Make.tags.inc" 81.1Scl 91.1Scl.ifmake tags 101.1Scl.include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc" 111.1Scl.endif 121.1Scl 131.1SclTXEN= ${SYSDIR}/arch/xen/tags 141.1Scl 151.8SdyoungSXEN!= ${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \ 161.1Scl ${SYSDIR}/arch/xen/conf/files.xen 171.8SdyoungSXEN+= ${SYSDIR}/arch/xen/include/*.h 181.8SdyoungSXEN+= ${SYSDIR}/arch/xen/include/*/*.h 191.8SdyoungSXEN+= ${SYSDIR}/arch/xen/include/*/*/*.h 201.9SdyoungSXEN+= ${SYSDIR}/arch/x86/x86/*.[ch] \ 211.9Sdyoung ${SYSDIR}/arch/x86/acpi/*.[ch] \ 221.9Sdyoung ${SYSDIR}/arch/x86/include/*.h \ 231.9Sdyoung ${SYSDIR}/arch/x86/isa/*.[ch] \ 241.9Sdyoung ${SYSDIR}/arch/x86/pci/*.[ch] 251.8SdyoungAXEN!= ${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \ 261.1Scl ${SYSDIR}/arch/xen/conf/files.xen 271.9Sdyoung#AXEN+= ${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS] 281.1Scl 291.1Scl# Directories in which to place tags links 301.1SclDXEN= xen ${XEN_MACHINE_ARCHS} include 311.1Scl 321.1Scltags: 331.6Sdyoung -rm -f ${TXEN} 341.6Sdyoung -echo ${SXEN} | xargs ctags -wadtf ${TXEN} 351.6Sdyoung ${FINDCOMM} | xargs ctags -wadtf ${TXEN} 361.1Scl egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \ 371.7Sdyoung ${TOOL_SED} -e \ 381.8Sdyoung "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 391.1Scl >> ${TXEN} 401.1Scl sort -o ${TXEN} ${TXEN} 411.1Scl 421.1Scllinks: 431.1Scl -for i in ${DXEN}; do \ 441.1Scl (cd $$i && rm -f tags; ln -s ../tags tags); done 451.1Scl 461.1Scl 471.2SbouyerSUBDIR= compile include 481.1Scl 491.1Scl.include <bsd.subdir.mk> 50