Whamcloud - gitweb
Branch b1_8
authoradilger <adilger>
Wed, 3 Jun 2009 21:51:35 +0000 (21:51 +0000)
committeradilger <adilger>
Wed, 3 Jun 2009 21:51:35 +0000 (21:51 +0000)
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

index aa19a1e..f07df3e 100644 (file)
@@ -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