makefile: local build target
This commit is contained in:
parent
8fc463bfad
commit
0326f96d7c
9
Makefile
9
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
|
||||
|
Loading…
Reference in New Issue
Block a user