mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 01:27:38 +00:00
parent
4cebe039a2
commit
5125c82cd9
6
Makefile
6
Makefile
@ -5,7 +5,7 @@ GOTEST = GODEBUG=cgocheck=0 $(GO) test ./... -p 2
|
|||||||
GIT_COMMIT ?= $(shell git rev-list -1 HEAD)
|
GIT_COMMIT ?= $(shell git rev-list -1 HEAD)
|
||||||
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
GIT_TAG ?= $(shell git describe --tags `git rev-list --tags="v*" --max-count=1`)
|
GIT_TAG ?= $(shell git describe --tags `git rev-list --tags="v*" --max-count=1`)
|
||||||
GOBUILD = env GO111MODULE=on $(GO) build -trimpath -ldflags "-X github.com/ledgerwatch/erigon/params.GitCommit=${GIT_COMMIT} -X github.com/ledgerwatch/erigon/params.GitBranch=${GIT_BRANCH} -X github.com/ledgerwatch/erigon/params.GitTag=${GIT_TAG}"
|
GOBUILD = $(GO) build -trimpath -ldflags "-X github.com/ledgerwatch/erigon/params.GitCommit=${GIT_COMMIT} -X github.com/ledgerwatch/erigon/params.GitBranch=${GIT_BRANCH} -X github.com/ledgerwatch/erigon/params.GitTag=${GIT_TAG}"
|
||||||
GO_DBG_BUILD = $(GO) build -trimpath -tags=debug -ldflags "-X github.com/ledgerwatch/erigon/params.GitCommit=${GIT_COMMIT} -X github.com/ledgerwatch/erigon/params.GitBranch=${GIT_BRANCH} -X github.com/ledgerwatch/erigon/params.GitTag=${GIT_TAG}" -gcflags=all="-N -l" # see delve docs
|
GO_DBG_BUILD = $(GO) build -trimpath -tags=debug -ldflags "-X github.com/ledgerwatch/erigon/params.GitCommit=${GIT_COMMIT} -X github.com/ledgerwatch/erigon/params.GitBranch=${GIT_BRANCH} -X github.com/ledgerwatch/erigon/params.GitTag=${GIT_TAG}" -gcflags=all="-N -l" # see delve docs
|
||||||
|
|
||||||
GO_MAJOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1)
|
GO_MAJOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1)
|
||||||
@ -39,6 +39,7 @@ geth: erigon
|
|||||||
erigon: go-version
|
erigon: go-version
|
||||||
@echo "Building Erigon"
|
@echo "Building Erigon"
|
||||||
rm -f $(GOBIN)/tg # Remove old binary to prevent confusion where users still use it because of the scripts
|
rm -f $(GOBIN)/tg # Remove old binary to prevent confusion where users still use it because of the scripts
|
||||||
|
git submodule update --init --recursive --force
|
||||||
$(GOBUILD) -o $(GOBIN)/erigon ./cmd/erigon
|
$(GOBUILD) -o $(GOBIN)/erigon ./cmd/erigon
|
||||||
@echo "Done building."
|
@echo "Done building."
|
||||||
@echo "Run \"$(GOBIN)/erigon\" to launch Erigon."
|
@echo "Run \"$(GOBIN)/erigon\" to launch Erigon."
|
||||||
@ -96,6 +97,7 @@ evm:
|
|||||||
@echo "Run \"$(GOBIN)/evm\" to run EVM"
|
@echo "Run \"$(GOBIN)/evm\" to run EVM"
|
||||||
|
|
||||||
downloader:
|
downloader:
|
||||||
|
git submodule update --init --recursive --force
|
||||||
$(GOBUILD) -o $(GOBIN)/downloader ./cmd/downloader
|
$(GOBUILD) -o $(GOBIN)/downloader ./cmd/downloader
|
||||||
@echo "Done building."
|
@echo "Done building."
|
||||||
@echo "Run \"$(GOBIN)/downloader\" to download and seed snapshots."
|
@echo "Run \"$(GOBIN)/downloader\" to download and seed snapshots."
|
||||||
@ -138,7 +140,7 @@ lintci-deps:
|
|||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.42.1
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.42.1
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
env GO111MODULE=on go clean -cache
|
go clean -cache
|
||||||
rm -fr build/*
|
rm -fr build/*
|
||||||
cd libmdbx/ && make clean
|
cd libmdbx/ && make clean
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user