slightly smarter make tags
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 7 Nov 2013 14:58:43 +0000 (15:58 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 7 Nov 2013 14:58:43 +0000 (15:58 +0100)
Makefile

index ae9e7a6..144c06c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -127,8 +127,12 @@ force:
 # a lot of stuff in the working dir is just noise
 files:
        @find . -type f | egrep -v '^\./\.|/\.git/|/\.svn/|TAGS|AA-|~$$|egg-info|\.(py[co]|doc|html|pdf|png|svg|out|bak|dg|pickle)$$' 
 # a lot of stuff in the working dir is just noise
 files:
        @find . -type f | egrep -v '^\./\.|/\.git/|/\.svn/|TAGS|AA-|~$$|egg-info|\.(py[co]|doc|html|pdf|png|svg|out|bak|dg|pickle)$$' 
+
+git-files:
+       @git ls-files | grep -v '\.doc$$'
+
 tags:  
 tags:  
-       $(MAKE) files | xargs etags
+       $(MAKE) git-files | xargs etags
 
 .PHONY: files tags
 
 
 .PHONY: files tags