From 2a1d02f05ea734a5e7a81f69752a5d80b6598d48 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 28 Jul 2016 13:18:23 -0400 Subject: [PATCH] Make Emacs tags actually work --- .gitignore | 3 +++ src/Makefile.in | 12 ++++++++++++ 2 files changed, 15 insertions(+) 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 -- 2.47.2