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
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