master - makefiles: adding target for generating ctags
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=beb65056cf450ac14c2354f87a981cd5a379560c Commit: beb65056cf450ac14c2354f87a981cd5a379560c Parent: c2d4330f27277717bc3b684b702189079b257b77 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Oct 2 12:09:02 2009 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Jul 15 13:10:22 2015 +0200
makefiles: adding target for generating ctags
make tags generates traditional tags ctags ref list.
--- Makefile.in | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
Makefile.in +10 -0
@@ -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