From 709706da0d9eb6b75b83bff1fe87f81c98332695 Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Wed, 6 Nov 2024 15:55:11 +0300 Subject: [PATCH] [#164] Makefile: Add clang-format support Signed-off-by: Alexander Chuprov --- Makefile | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 3a75647..8f7f0d6 100644 --- a/Makefile +++ b/Makefile @@ -76,20 +76,7 @@ lint: $(LINT_DIR)/golangci-lint run --timeout=5m clang: - @if [ ! -d "$(OUTPUT_LINT_DIR)/clang" ]; then \ - make clang-install; \ - fi -# @$(OUTPUT_LINT_DIR)/clang/clang-format -i **/*.js - -clang-install: - @mkdir -p $(TMP_DIR)/llvm - @curl -L -o $(TMP_DIR)/llvm/llv-$(LLVM_VERSION)-linux-x64.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLVM_VERSION)/LLVM-$(LLVM_VERSION)-Linux-X64.tar.xz - @mkdir -p $(OUTPUT_LINT_DIR)/clang - @tar -xJf $(TMP_DIR)/llvm/llv-$(LLVM_VERSION)-linux-x64.tar.xz --strip-components=2 -C $(OUTPUT_LINT_DIR)/clang LLVM-$(LLVM_VERSION)-Linux-X64/bin/clang-format - @rm -r $(TMP_DIR) 2>/dev/null || true - -llvm-version: - @echo $(LLVM_VERSION) + @clang-format -i **/*.js # Install linters lint-install: