From: Tom Yu Date: Thu, 28 Jul 2016 17:18:23 +0000 (-0400) Subject: Make Emacs tags actually work X-Git-Tag: krb5-1.15-beta1~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a1d02f05ea734a5e7a81f69752a5d80b6598d48;p=thirdparty%2Fkrb5.git Make Emacs tags actually work --- diff --git a/.gitignore b/.gitignore index 36117a2413..3b63c98d97 100644 --- a/.gitignore +++ b/.gitignore @@ -129,6 +129,9 @@ local.properties /doc/html/ /doc/pdf/ +# Emacs tags table +/src/TAGS + /src/config.log /src/config.status /src/configure diff --git a/src/Makefile.in b/src/Makefile.in index 4d8c6f17dc..d8c524fd6d 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -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