diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2009-10-02 12:09:02 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-07-15 13:10:22 +0200 |
commit | beb65056cf450ac14c2354f87a981cd5a379560c (patch) | |
tree | 23421d358eb6a86fa1c06af3fc22785f7f359dc7 /Makefile.in | |
parent | c2d4330f27277717bc3b684b702189079b257b77 (diff) | |
download | lvm2-beb65056cf450ac14c2354f87a981cd5a379560c.tar.gz |
makefiles: adding target for generating ctags
make tags generates traditional tags ctags ref list.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 10 |
1 files changed, 10 insertions, 0 deletions
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 |