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: