Author: alexfh Date: Thu Sep 17 09:37:26 2015 New Revision: 247890 URL: http://llvm.org/viewvc/llvm-project?rev=247890&view=rev Log: [clang-tidy] install helper scripts
Scripts are installed in same location as clang-fromat ones, so I think will be good idea to not create dedicated directory. I checked this patch on my own build on RHEL 6. Please check it in if it's OK, because I don't have SVN write access. I think will be good idea to backport this patch to 3.7 release branch. Probably same should be done for configure build. Patch by Eugene Zelenko! Differential revision: http://reviews.llvm.org/D12700 Modified: clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt clang-tools-extra/trunk/clang-tidy/tool/Makefile Modified: clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt?rev=247890&r1=247889&r2=247890&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt (original) +++ clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt Thu Sep 17 09:37:26 2015 @@ -21,3 +21,5 @@ target_link_libraries(clang-tidy install(TARGETS clang-tidy RUNTIME DESTINATION bin) +install(PROGRAMS clang-tidy-diff.py DESTINATION share/clang) +install(PROGRAMS run-clang-tidy.py DESTINATION share/clang) Modified: clang-tools-extra/trunk/clang-tidy/tool/Makefile URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/Makefile?rev=247890&r1=247889&r2=247890&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/tool/Makefile (original) +++ clang-tools-extra/trunk/clang-tidy/tool/Makefile Thu Sep 17 09:37:26 2015 @@ -26,3 +26,22 @@ USEDLIBS = clangTidy.a clangTidyLLVMModu clangEdit.a clangAST.a clangLex.a clangBasic.a include $(CLANG_LEVEL)/Makefile + +PROJ_sharedir := $(DESTDIR)$(PROJ_prefix)/share/clang + +FILESLIST := $(notdir $(wildcard $(PROJ_SRC_DIR)/*.py)) + +SRCFILES := $(addprefix $(PROJ_SRC_DIR)/, $(FILESLIST)) +DESTFILES := $(addprefix $(PROJ_sharedir)/, $(FILESLIST)) + +$(PROJ_sharedir): + $(Echo) Making install directory: $@ + $(Verb) $(MKDIR) $@ + +$(DESTFILES): $(SRCFILES) + +$(PROJ_sharedir)/%.py: $(PROJ_SRC_DIR)/%.py + $(Echo) Installing script file: $(notdir $<) + $(Verb) $(ScriptInstall) $< $(PROJ_sharedir) + +install-local:: $(PROJ_sharedir) $(DESTFILES) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits