add tags target
authorPierre Habouzit <madcoder@debian.org>
Mon, 8 Jan 2007 00:10:19 +0000 (01:10 +0100)
committerPierre Habouzit <madcoder@debian.org>
Mon, 8 Jan 2007 00:10:19 +0000 (01:10 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Makefile

index 9170135..558ab07 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,6 +50,10 @@ clean:
 
 distclean: clean
 
+tags: .tags
+.tags: $(shell git ls-files | egrep '\.[hc]$$')
+       ctags -o $@ $^
+
 headers: HEADACHEOPTS=-c mk/headache.cfg -h COPYING
 headers:
        @which headache > /dev/null || \