[PATCH] Makefile: Add "cscope" target



Builds cscope database, gets cleaned on "clean"

Signed-off-by: Thomas Graf <tgraf redhat com>
---
 .gitignore  |    1 +
 Makefile.am |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 215864d..63cf8e9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,6 +29,7 @@ COPYING
 INSTALL
 ABOUT-NLS
 *.pc
+cscope.*out
 man/*.[185]
 po/*.gmo
 po/.intltool-merge-cache
diff --git a/Makefile.am b/Makefile.am
index c128368..912ded3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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;
-- 
1.7.7



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]