summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-01-22 21:54:51 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-01-22 21:54:51 +0000
commit6fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336 (patch)
treef15ba86a22275b6e21d0625e60abf4039492a79e /Makefile
parent84dc5fb6ba3c131ed707b03fcd1603c1efca2802 (diff)
downloadexternal_llvm-6fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336.zip
external_llvm-6fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336.tar.gz
external_llvm-6fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336.tar.bz2
Move support for building tags database from Makefile.rules to Makefile, because
it's only used in the top-level directory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8467283..f574193 100644
--- a/Makefile
+++ b/Makefile
@@ -31,8 +31,7 @@ configure: autoconf/configure.ac autoconf/aclocal.m4
include/Config/config.h.in: autoconf/configure.ac autoconf/aclocal.m4
autoheader -I autoconf autoconf/configure.ac
-# Install support for llvm include files.
-
+# Install support for llvm include files:
.PHONY: install-includes
install-includes:
@@ -41,3 +40,13 @@ install-includes:
install:: install-includes
+# Build tags database for Emacs/Xemacs:
+.PHONY: tags
+
+TAGS: tags
+
+all:: tags
+
+tags:
+ $(ETAGS) $(ETAGSFLAGS) `find $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools) -name '*.cpp' -o -name '*.h'`
+