build: add "cscope" target to makefile
authorThomas Graf <tgraf@redhat.com>
Mon, 14 Nov 2011 12:35:30 +0000 (13:35 +0100)
committerJiří Klimeš <jklimes@redhat.com>
Mon, 14 Nov 2011 12:40:28 +0000 (13:40 +0100)
It builds cscope database, gets cleaned on "clean".

.gitignore
Makefile.am

index 8630fc4..a1fcced 100644 (file)
@@ -30,6 +30,7 @@ COPYING
 INSTALL
 ABOUT-NLS
 *.pc
+cscope.*out
 man/*.[185]
 po/*.gmo
 po/.intltool-merge-cache
index c128368..912ded3 100644 (file)
@@ -38,3 +38,8 @@ pkgconfig_DATA = NetworkManager.pc
 
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
+CLEANFILES = cscope.in.out cscope.out cscope.po.out
+
+.PHONY: cscope
+cscope:
+       cscope -b -q -R -Iinclude -ssrc -slibnm-glib -slibnm-util -smarshallers -scli/src;