]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Make Emacs tags actually work 503/head
authorTom Yu <tlyu@mit.edu>
Thu, 28 Jul 2016 17:18:23 +0000 (13:18 -0400)
committerTom Yu <tlyu@mit.edu>
Fri, 5 Aug 2016 12:13:41 +0000 (08:13 -0400)
.gitignore
src/Makefile.in

index 36117a2413a30e91998c530ca38d2efc476e7a69..3b63c98d97b815c254a4589bdd7cb5729cc54f85 100644 (file)
@@ -129,6 +129,9 @@ local.properties
 /doc/html/
 /doc/pdf/
 
+# Emacs tags table
+/src/TAGS
+
 /src/config.log
 /src/config.status
 /src/configure
index 4d8c6f17dc5ad4c8375b28910822d8e7fcfc6241..d8c524fd6dc313c7fe2cecd561eea4a0560a2b29 100644 (file)
@@ -667,3 +667,15 @@ check-copyright:
        (cd $(top_srcdir) && \
        $(FIND) . \( -name '*.[ch]' -o -name '*.hin' \) -print0 | \
        $(XARGS) -0 python util/krb5-check-copyright.py)
+
+tags: FORCE
+       (cd $(top_srcdir) && \
+       $(FIND) . \( -name '*.[ch]' -o -name '*.hin' \) -print | \
+       etags --lang=c - && \
+       $(FIND) . -name '*.cpp' -print | etags --lang=c++ --append - && \
+       $(FIND) . -name '*.y' -print | etags --lang=yacc --append -)
+FORCE:
+.PHONY: FORCE tags
+
+distclean-unix:
+       $(RM) $(top_srcdir)/TAGS