makefile: local build target

This commit is contained in:
Roy Crihfield 2023-06-30 13:56:12 +08:00
parent 8fc463bfad
commit 0326f96d7c

View File

@ -11,3 +11,12 @@ $(MOCKS_DIR)/gen_backend.go:
docker: mocks docker: mocks
docker build . -t "cerc/plugeth-statediff:local" docker build . -t "cerc/plugeth-statediff:local"
.PHONY: docker .PHONY: docker
# Local build
BUILD_FLAGS := --trimpath
plugin: build/statediff.so
.PHONY: plugin
build/statediff.so: ./**/*.go
go build --tags linkgeth --buildmode=plugin -o $@ $(BUILD_FLAGS) ./main