For those who prefer cscope to etags
Thanks to Toke Hoiland-Jorgensen for the patch.
/configure
/sysdep/autoconf.h.in
/sysdep/autoconf.h.in~
+/cscope.*
docgoals := docs userdocs progdocs
testgoals := check test tests tests_run
cleangoals := clean distclean testsclean
-.PHONY: all daemon cli $(docgoals) $(testgoals) $(cleangoals) tags
+.PHONY: all daemon cli $(docgoals) $(testgoals) $(cleangoals) tags cscope
all: daemon cli
daemon: $(daemon)
tags:
cd $(srcdir) ; etags -lc `find $(dirs) -name *.[chY]`
+cscope:
+ cd $(srcdir) ; find $(dirs) -name *.[chY] > cscope.files ; cscope -b
+
# Install
install: all