[llvm-commits] CVS: llvm/Makefile Makefile.rules

Brian Gaeke gaeke at cs.uiuc.edu
Thu Jan 22 15:56:11 PST 2004


Changes in directory llvm:

Makefile updated: 1.16 -> 1.17
Makefile.rules updated: 1.174 -> 1.175

---
Log message:

Move support for building tags database from Makefile.rules to Makefile, because
it's only used in the top-level directory.


---
Diffs of the changes:  (+11 -19)

Index: llvm/Makefile
diff -u llvm/Makefile:1.16 llvm/Makefile:1.17
--- llvm/Makefile:1.16	Wed Jan 21 17:28:03 2004
+++ llvm/Makefile	Thu Jan 22 15:54:51 2004
@@ -31,8 +31,7 @@
 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:
@@ -40,4 +39,14 @@
 	cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
 
 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'`
 


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.174 llvm/Makefile.rules:1.175
--- llvm/Makefile.rules:1.174	Wed Jan 21 17:57:21 2004
+++ llvm/Makefile.rules	Thu Jan 22 15:54:51 2004
@@ -608,23 +608,6 @@
 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...
 #------------------------------------------------------------------------
 #





More information about the llvm-commits mailing list