From 7f9f78aecd11e8d8ead20596087c8ea507406fe8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 26 Jan 2007 13:53:35 +0100 Subject: [PATCH] makefile: Use git-ls-files if possible to build tags files. --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 79cf7e6b5d5..9c24f160fcd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -132,10 +132,10 @@ $(TESTSUBDIRS:%=%/__crosstest__): tools include # Misc rules TAGS etags: - find -L $(TOPSRCDIR) -name '*.[ch]' -print | etags - + (test -d .git && git-ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | etags - tags ctags: - find -L $(TOPSRCDIR) -name '*.[ch]' -print | ctags --c-types=+px -L - + (test -d .git && git-ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | ctags - manpages htmlpages sgmlpages: dummy @cd documentation && $(MAKE) $@