summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
-rw-r--r--Makefile.rules17
2 files changed, 11 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 8467283c07..f574193388 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'`
+
diff --git a/Makefile.rules b/Makefile.rules
index 325cf09496..7da6f5737a 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -608,23 +608,6 @@ install-single-object-library: $(LIBNAME_OBJCUR)
endif
#------------------------------------------------------------------------
-# Create a TAGS database for emacs
-#------------------------------------------------------------------------
-
-ifneq ($(ETAGS),false)
-ifeq ($(LEVEL), .)
-SRCDIRS := $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools)
-
-tags:
- $(ETAGS) -l c++ `find $(SRCDIRS) -name '*.cpp' -o -name '*.h'`
-all:: tags
-endif
-else
-tags:
- ${ECHO} "Cannot build $@: The program etags is not installed"
-endif
-
-#------------------------------------------------------------------------
# Handle the TOOLNAME option - used when building tool executables...
#------------------------------------------------------------------------
#