1 # $NetBSD: Makefile,v 1.5 2011/04/08 14:58:46 dyoung Exp $ 2 3 # Makefile for cats tags file and boot blocks 4 5 # Find where ARM source files are for inclusion in tags 6 .include <../arm/Makefile.inc> 7 8 TCATS= ${SYSDIR}/arch/cats/tags 9 SCATS= ${SYSDIR}/arch/cats/cats/*.[ch] ${SYSDIR}/arch/cats/include/*.h \ 10 ${SYSDIR}/arch/cats/pci/*.[ch] 11 12 # Directories in which to place tags links 13 DCATS= include 14 15 .include "../../kern/Make.tags.inc" 16 17 tags: 18 -rm -f ${TCATS} 19 -echo ${SCATS} ${SARM} | xargs ctags -wadtf ${TCATS} 20 -${FINDCOMM} | xargs ctags -wadtf ${TCATS} 21 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACATS} ${AARM} | \ 22 ${TOOL_SED} -e \ 23 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 24 >> ${TCATS} 25 sort -o ${TCATS} ${TCATS} 26 27 links: 28 -for i in ${DCATS}; do \ 29 cd $$i && rm -f tags; ln -s ../tags tags; done 30 31 32 SUBDIR= compile include 33 34 .include <bsd.subdir.mk> 35