From 0f6818ed2e8c2b3ba87e62ca6895d7da8ffbe045 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 3 Jun 2009 21:51:35 +0000 Subject: [PATCH] Branch b1_8 Add "make cscope" target like "make tags". Split "make tags" into "make ctags" (ctags/Vim), "make etags/TAGS" (emacs). b=19690 i=brian i=nic@cray.com --- build/autoMakefile.am.toplevel | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/build/autoMakefile.am.toplevel b/build/autoMakefile.am.toplevel index aa19a1e..f07df3e 100644 --- a/build/autoMakefile.am.toplevel +++ b/build/autoMakefile.am.toplevel @@ -11,19 +11,29 @@ ctags-recursive: tags-recursive: -TAGS: +TAGS: etags -tags: +tags: ctags etags + +etags: $(RM) $(top_srcdir)/TAGS ETAGSF=`etags --version | grep -iq exuberant && \ echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' |xargs etags $$ETAGSF -a +ctags: $(RM) $(top_srcdir)/tags CTAGSF=`ctags --version | grep -iq exuberant && \ echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' |xargs ctags $$CTAGSF -a +cscope-recursive: + +cscope: + $(RM) $(top_srcdir)/cscope*.out $(top_srcdir)/cscope.files + find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' > cscope.files + cscope -bRq + if MODULES sources: all-sources -- 1.8.3.1