Go-SDK & CLI tool to interact with the Woop Blockchain
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
version := $(shell git rev-list --count HEAD)
|
|
|
|
commit := $(shell git describe --always --long --dirty)
|
|
|
|
built_at := $(shell date +%FT%T%z)
|
|
|
|
built_by := ${USER}@harmony.one
|
|
|
|
|
|
|
|
flags := -gcflags="all=-N -l -c 2"
|
|
|
|
ldflags := -X main.version=v${version} -X main.commit=${commit}
|
|
|
|
ldflags += -X main.builtAt=${built_at} -X main.builtBy=${built_by}
|
|
|
|
cli := hmy_cli
|
|
|
|
|
|
|
|
GO111MODULE=on
|
|
|
|
|
|
|
|
all:
|
|
|
|
go build -o $(cli) -ldflags="$(ldflags)" client/main.go
|
|
|
|
|
|
|
|
debug:
|
|
|
|
go build $(flags) -o $(cli) -ldflags="$(ldflags)" client/main.go
|
|
|
|
|
|
|
|
run: all
|
|
|
|
./$(cli)
|
|
|
|
|
|
|
|
.PHONY:clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f $(cli)
|