From 6eb63cf5c7b1a2d32c63cddb51a6d67074fa4852 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 12 Mar 2024 10:24:35 +0300 Subject: [PATCH] [#1036] Makefile: Add missing comments Signed-off-by: Evgenii Stratonikov --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 493ef25e5..21d7d4275 100755 --- a/Makefile +++ b/Makefile @@ -115,6 +115,7 @@ protoc: --go-grpc_out=. --go-grpc_opt=paths=source_relative $$f; \ done +# Install protoc protoc-install: @rm -rf $(PROTOBUF_DIR) @mkdir $(PROTOBUF_DIR) @@ -161,6 +162,7 @@ imports: @echo "⇒ Processing goimports check" @goimports -w cmd/ pkg/ misc/ +# Run gofumpt fumpt: @echo "⇒ Processing gofumpt check" @gofumpt -l -w cmd/ pkg/ misc/ @@ -170,6 +172,7 @@ test: @echo "⇒ Running go test" @go test ./... -count=1 +# Run pre-commit pre-commit-run: @pre-commit run -a --hook-stage manual @@ -205,11 +208,13 @@ staticcheck-run: fi @$(STATICCHECK_VERSION_DIR)/staticcheck ./... +# Install gopls gopls-install: @rm -rf $(GOPLS_DIR) @mkdir $(GOPLS_DIR) @GOBIN=$(GOPLS_VERSION_DIR) go install golang.org/x/tools/gopls@$(GOPLS_VERSION) +# Run gopls gopls-run: @if [ ! -d "$(GOPLS_VERSION_DIR)" ]; then \ make gopls-install; \ @@ -253,13 +258,16 @@ debpackage: "Please see CHANGELOG.md for code changes for $(VERSION)" dpkg-buildpackage --no-sign -b +# Cleanup deb package build directories debclean: dh clean +# Download locode database locode-download: @wget -q -O ./.cache/locode_db.gz 'https://git.frostfs.info/TrueCloudLab/frostfs-locode-db/releases/download/${LOCODE_DB_VERSION}/locode_db.gz' gzip -dfk ./.cache/locode_db.gz +# Start dev environment env-up: all docker compose -f dev/docker-compose.yml up -d @if [ ! -d "$(FROSTFS_CONTRACTS_PATH)" ]; then \ @@ -271,6 +279,7 @@ env-up: all make locode-download; \ fi +# Shutdown dev environment env-down: docker compose -f dev/docker-compose.yml down docker volume rm -f frostfs-node_neo-go