diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-12 02:27:36 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-12 02:27:36 +0000 |
commit | 12d7951d04b8d1d58e47aea995378908283d37a1 (patch) | |
tree | c6c8b353820420813fa85c54cbaa386962c6f7e4 | |
parent | 37d813db7aacb4d58395e3dfd6f6cd48519bdbe0 (diff) |
* 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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17688 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.rules | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Makefile.rules b/Makefile.rules index 69bb2c9926..bc893a4552 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -482,7 +482,7 @@ $(DestSharedLib): $(libdir) $(LibName.LA) uninstall-local:: $(Echo) Uninstalling $(BuildMode) Shared Library $(DestSharedLib) - -$(Verb) $(RM) -f $(DestSharedLib) + -$(Verb) $(RM) -f $(libdir)/lib$(LIBRARYNAME).* endif @@ -922,11 +922,25 @@ clean-all-local:: -$(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 ############################################################################### |