Skip to content

Commit 2c639cf

Browse files
committed
Makefile: remove prepare target
It does not seem to be documented anywhere, nor used
1 parent 409a924 commit 2c639cf

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Makefile

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,32 +53,6 @@ LIBP2P_HELPER_SIG := $(shell cd src/app/libp2p_helper ; find . -type f -print0
5353
help: ## Display this help information
5454
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
5555

56-
57-
########################################
58-
.PHONY: add-o1labs-opam-repo
59-
add-o1labs-opam-repo:
60-
opam repository add --yes --all --set-default o1-labs https://github.com/o1-labs/opam-repository.git
61-
62-
.PHONY: prepare
63-
prepare: add-o1labs-opam-repo
64-
@echo "Preparing the environment and installing dependencies..."
65-
@# Check Go installation and version
66-
@command -v go >/dev/null 2>&1 || { echo >&2 "Error: Go is not installed. Please install Go before continuing. You can use gvm to install the appropriate Go environment."; exit 1; }
67-
@GO_VERSION=$$(go version | awk '{print $$3}' | sed 's/go//'); \
68-
GO_MOD_PATH="src/app/libp2p_helper/src/go.mod"; \
69-
REQUIRED_GO_VERSION=$$(grep -E "^go [0-9]+\.[0-9]" $$GO_MOD_PATH | awk '{print $$2}'); \
70-
if ! printf '%s\n%s\n' "$$REQUIRED_GO_VERSION" "$$GO_VERSION" | sort -V | head -n1 | grep -q "^$$REQUIRED_GO_VERSION$$"; then \
71-
echo "Error: Go version $$GO_VERSION is not compatible. Required version is $$REQUIRED_GO_VERSION or newer (only minor)."; \
72-
exit 1; \
73-
fi; \
74-
echo "Go version $$GO_VERSION detected (requirement: $$REQUIRED_GO_VERSION or newer (only minor))"
75-
opam switch import --switch mina --yes opam.export
76-
eval $(opam env --switch=mina --set-switch)
77-
chmod +x scripts/pin-external-packages.sh
78-
./scripts/pin-external-packages.sh
79-
@echo "Environment prepared. You can now run 'make build' to build the project."
80-
81-
8256
########################################
8357
## Code
8458

0 commit comments

Comments
 (0)