1# $NetBSD: Makefile,v 1.5 2008/10/25 22:27:37 apb Exp $ 2 3# Makefile for cobalt tags file 4 5# Find where mips source files are for inclusion in tags 6.include <../mips/Makefile.inc> 7 8TCOBALT= ${SYSDIR}/arch/cobalt/tags 9SCOBALT= ${SYSDIR}/arch/cobalt/cobalt/*.[ch] \ 10 ${SYSDIR}/arch/cobalt/include/*.h \ 11 ${SYSDIR}/arch/cobalt/dev/*.[ch] \ 12 ${SYSDIR}/arch/cobalt/pci/*.[ch] 13ACOBALT= ${SYSDIR}/arch/cobalt/cobalt/*.S 14 15# Directories in which to place tags links 16DCOBALT= pci include 17 18.include "../../kern/Make.tags.inc" 19 20tags: 21 -rm -f ${TCOBALT} 22 -echo ${SCOBALT} ${SMIPS} | xargs ctags -wadtf ${TCOBALT} 23 -${FINDCOMM} | xargs ctags -wadtf ${TCOBALT} 24 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACOBALT} ${AMIPS} | \ 25 ${TOOL_SED} -e \ 26 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 27 >> ${TCOBALT} 28 sort -o ${TCOBALT} ${TCOBALT} 29 30links: 31 -for i in ${DCOBALT}; do \ 32 cd $$i && rm -f tags; ln -s ../tags tags; done 33 34SUBDIR= compile include stand 35 36.include <bsd.subdir.mk> 37