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

Reid Spencer reid at x10sys.com
Thu Nov 11 18:27:47 PST 2004



Changes in directory llvm:

Makefile.rules updated: 1.233 -> 1.234
---
Log message:

* Clean up all the shared library output on uninstall
* Provide the correct set of input directories to the TAGS target
* Provide a CTAGS target for building Vi style ctags files.


---
Diffs of the changes:  (+17 -3)

Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.233 llvm/Makefile.rules:1.234
--- llvm/Makefile.rules:1.233	Mon Nov  8 11:32:11 2004
+++ llvm/Makefile.rules	Thu Nov 11 20:27:36 2004
@@ -482,7 +482,7 @@
 
 uninstall-local:: 
 	$(Echo) Uninstalling $(BuildMode) Shared Library $(DestSharedLib)
-	-$(Verb) $(RM) -f $(DestSharedLib)
+	-$(Verb) $(RM) -f $(libdir)/lib$(LIBRARYNAME).*
 
 endif
 
@@ -922,11 +922,25 @@
 	-$(Verb) $(RM) -rf Debug Release Profile
 
 # Build tags database for Emacs/Xemacs:
-tags:: TAGS
+tags:: TAGS CTAGS
+
 TAGS: 
-	find include lib tools examples -name '*.cpp' -o -name '*.h' | \
+	find $(BUILD_SRC_ROOT)/include $(BUILD_SRC_ROOT)/lib \
+          $(BUILD_SRC_ROOT)/tools $(BUILD_SRC_ROOT)/examples \
+          $(BUILD_OBJ_ROOT)/include $(BUILD_OBJ_ROOT)/lib \
+          $(BUILD_OBJ_ROOT)/tools $(BUILD_OBJ_ROOT)/examples \
+        -name '*.cpp' -o -name '*.h' | \
         $(ETAGS) $(ETAGSFLAGS) -
 
+CTAGS:
+	find $(BUILD_SRC_ROOT)/include $(BUILD_SRC_ROOT)/lib \
+          $(BUILD_SRC_ROOT)/tools $(BUILD_SRC_ROOT)/examples \
+          $(BUILD_OBJ_ROOT)/include $(BUILD_OBJ_ROOT)/lib \
+          $(BUILD_OBJ_ROOT)/tools $(BUILD_OBJ_ROOT)/examples \
+          \( -name '*.cpp' -o -name '*.h' \) -print | \
+          ctags -ImtT -o $(BUILD_OBJ_ROOT)/CTAGS -L -
+
+
 ###############################################################################
 # DEPENDENCIES: Include the dependency files if we should
 ###############################################################################






More information about the llvm-commits mailing list