Alexandre Julliard : makefile: Use git-ls-files if possible to build tags files.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 26 07:47:12 CST 2007


Module: wine
Branch: master
Commit: 7f9f78aecd11e8d8ead20596087c8ea507406fe8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7f9f78aecd11e8d8ead20596087c8ea507406fe8

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jan 26 13:53:35 2007 +0100

makefile: Use git-ls-files if possible to build tags files.

---

 Makefile.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 79cf7e6..9c24f16 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -132,10 +132,10 @@ $(TESTSUBDIRS:%=%/__crosstest__): tools
 # 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) $@




More information about the wine-cvs mailing list