From 0326f96d7c17f3ac137fcadc1689859cb21a8dcb Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Fri, 30 Jun 2023 13:56:12 +0800 Subject: [PATCH] makefile: local build target --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 9f28264..a475e19 100644 --- a/Makefile +++ b/Makefile @@ -11,3 +11,12 @@ $(MOCKS_DIR)/gen_backend.go: docker: mocks docker build . -t "cerc/plugeth-statediff:local" .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