From beb65056cf450ac14c2354f87a981cd5a379560c Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 2 Oct 2009 12:09:02 +0200 Subject: [PATCH] makefiles: adding target for generating ctags make tags generates traditional tags ctags ref list. --- Makefile.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile.in b/Makefile.in index 43a6ed08a..1eb026bb4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -223,3 +223,13 @@ memcheck: test-programs ruby-test: $(RUBY) report-generators/test/ts.rb endif + +ifneq ($(shell which ctags),) +.PHONY: tags +all: tags +tags: + test -z "$(shell find $(top_srcdir) -type f -name '*.[ch]' -newer tags | head -1)" || $(RM) tags + test -f tags || find $(top_srcdir) -maxdepth 4 -type f -name '*.[ch]' -exec ctags -a '{}' + + +DISTCLEAN_TARGETS += tags +endif