Now that cscope is free software, I thought it might be nice if automake 
created make targets for it.  It's a powerful too; very useful for large 
projects.  Here's a patch that implements it in tags.am.  If it looks ok, can 
someone please commit it so it's part of the next release?

For those who just want to play with it, you should just be able to apply the 
patch to your /usr/share/automake/am/tags.am file and regenerate your 
makefiles.  Once that's done, just type 'make cscope' in your project tree.

Thanks,
Jesse

P.S. If this really does look ok, it might make sense to include xcscope.el in 
the Emacs distribution as well...
--- tags.am.orig	2004-07-14 14:02:11.840943128 -0400
+++ tags.am	2004-07-14 14:11:51.663796656 -0400
@@ -121,6 +121,17 @@
 	  && gtags -i $(GTAGS_ARGS) $$here
 
 
+## ------- ##
+## cscope  ##
+## ------- ##
+
+.PHONY: cscope
+cscope:
+	here=`$(am__cd) $(top_builddir) && pwd` \
+	  && cd $(top_srcdir) \
+	  && cscope -b -R -q $(CSCOPE_ARGS)
+
+
 ## ---------- ##
 ## Cleaning.  ##
 ## ---------- ##
@@ -128,4 +139,5 @@
 .PHONY distclean-am: distclean-tags
 
 distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags cscope.out cscope.in.out \
+	cscope.po.out

Reply via email to