]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Add cscope Makefile target
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 13 Feb 2018 16:00:24 +0000 (17:00 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 13 Feb 2018 16:00:24 +0000 (17:00 +0100)
For those who prefer cscope to etags

Thanks to Toke Hoiland-Jorgensen for the patch.

.gitignore
Makefile.in

index 0dcebfd13c9dd312078d57ac202fe9142fe23f06..3b734f4922b6f3c63e3cdd80443987302e03141e 100644 (file)
@@ -12,3 +12,4 @@
 /configure
 /sysdep/autoconf.h.in
 /sysdep/autoconf.h.in~
+/cscope.*
index fdd5e6c7bbeb7af93825beeadef39d72d3a26da6..c8168bbe4cb1a0988a3d73bb8b562ac8b16db921 100644 (file)
@@ -58,7 +58,7 @@ endif
 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)
@@ -162,6 +162,9 @@ endif
 tags:
        cd $(srcdir) ; etags -lc `find $(dirs) -name *.[chY]`
 
+cscope:
+       cd $(srcdir) ; find $(dirs) -name *.[chY] > cscope.files ; cscope -b
+
 # Install
 
 install: all