ctdb-build: Create ctdb only ctags
authorAmitay Isaacs <amitay@gmail.com>
Tue, 8 Jul 2014 04:04:29 +0000 (14:04 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 8 Jul 2014 08:17:54 +0000 (10:17 +0200)
CTDB does not use auto-generated files, there is no need to configure
to generate ctags.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/Makefile
ctdb/wscript

index 4d2f059916a543a2c7b2bbc5684ce8c0889930ca..6d57b0ca4f9a15ae9f12b00f17a3ea51282ae068 100644 (file)
@@ -67,7 +67,8 @@ etags:
        $(WAF) etags
 
 ctags:
-       $(WAF) ctags
+       touch .tmplock
+       WAFLOCK=.tmplock $(WAF) ctags
 
 pydoctor:
        $(WAF) pydoctor
index 20a33e8abe60e2107190d596b6e68abf6c8632e5..a85caed759b998b71aa5a97fbefc7549042e1ab2 100755 (executable)
@@ -608,7 +608,7 @@ def ctags(ctx):
     "build 'tags' file using ctags"
     import Utils
     source_root = os.path.dirname(Utils.g_module.root_path)
-    cmd = 'ctags $(find %s/.. -name "*.[ch]" | grep -v "*_proto\.h")' % source_root
+    cmd = 'ctags $(find %s -name "*.[ch]")' % source_root
     print("Running: %s" % cmd)
     ret = samba_utils.RUN_COMMAND(cmd)
     if ret != 0: