build: Add rules to create ctags/etags
authorAmitay Isaacs <amitay@gmail.com>
Wed, 11 Jan 2012 08:04:39 +0000 (19:04 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 30 Mar 2012 01:32:05 +0000 (12:32 +1100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Makefile.in

index 90d7b085ccaa6b604239da5820f8455d864c93cd..9615a494caa4b518da528315b1c9178de68b438b 100755 (executable)
@@ -357,6 +357,11 @@ test: all
 valgrindtest: all
        VALGRIND="valgrind -q --trace-children=yes" tests/run_tests.sh
 
+ctags:
+       find . -name "*.[ch]" | xargs ctags
+
+etags:
+       find . -name "*.[ch]" | xargs etags
 
 realdistclean: distclean
        rm -f configure config.h.in ctdb.pc