Add tags target to wscript.
authorCarl Hetherington <cth@carlh.net>
Wed, 28 Oct 2015 10:24:23 +0000 (10:24 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 28 Oct 2015 10:24:23 +0000 (10:24 +0000)
.gitignore
wscript

index 4c1bc112d3d27bf89b55e475460c2e2eb6fba014..3978d8d960f6442f00072ec27fb165515802a4db 100644 (file)
@@ -13,3 +13,5 @@ GRTAGS
 GSYMS
 GTAGS
 .*.swp
+TAGS
+
diff --git a/wscript b/wscript
index c6b69e86f2f7cfacab5e6f4ba37dd17b7b529f89..dc6e4fd9d039b446f92ba36df95740bc4c700908 100644 (file)
--- a/wscript
+++ b/wscript
@@ -63,7 +63,7 @@ def configure(conf):
                      }
                      """,
                        msg='Checking for library openjpeg', stlib='openjpeg', uselib_store='OPENJPEG', mandatory=True)
-        
+
         conf.env.HAVE_CXML = 1
         conf.env.STLIB_CXML = ['cxml']
     else:
@@ -180,3 +180,6 @@ def create_version_cc(bld, version):
 def post(ctx):
     if ctx.cmd == 'install':
         ctx.exec_command('/sbin/ldconfig')
+
+def tags(bld):
+    os.system('etags src/*.cc src/*.h')