Skip to content

Commit

Permalink
Merging r247890:
Browse files Browse the repository at this point in the history
------------------------------------------------------------------------
r247890 | alexfh | 2015-09-17 07:37:26 -0700 (Thu, 17 Sep 2015) | 17 lines

[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


------------------------------------------------------------------------

llvm-svn: 253118
  • Loading branch information
tstellarAMD committed Nov 14, 2015
1 parent d3bbf22 commit 1069923
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang-tools-extra/clang-tidy/tool/CMakeLists.txt
Expand Up @@ -20,3 +20,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)
19 changes: 19 additions & 0 deletions clang-tools-extra/clang-tidy/tool/Makefile
Expand Up @@ -26,3 +26,22 @@ USEDLIBS = clangTidy.a clangTidyLLVMModule.a clangTidyGoogleModule.a \
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)

0 comments on commit 1069923

Please sign in to comment.