From d73ab83d854589578d69980df718bb6a2d87b07d Mon Sep 17 00:00:00 2001 From: hskang9 Date: Sun, 26 Jan 2020 06:58:43 -0800 Subject: [PATCH] chore: build the project --- Makefile | 6 ++++-- install-bindata.sh | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 install-bindata.sh diff --git a/Makefile b/Makefile index 6b127a7..0cda19c 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,15 @@ # TODO: add versioning # TODO: add ldflags for version of sdk + + all: tools install mod: @go mod tidy tools: - @go get -u github.com/go-bindata/go-bindata/... + bash install-bindata.sh generate: @go-bindata --pkg cmd -o cmd/bindata.go -prefix "templates/" templates/... @@ -24,4 +26,4 @@ lint: @golangci-lint run go mod verify -.PHONY: all tools generate build install \ No newline at end of file +.PHONY: all tools generate build install diff --git a/install-bindata.sh b/install-bindata.sh new file mode 100644 index 0000000..9217bee --- /dev/null +++ b/install-bindata.sh @@ -0,0 +1,6 @@ +go get -u github.com/go-bindata/go-bindata/... +cd ${GOPATH}/src/github.com/go-bindata/go-bindata/ +go test +cd go-bindata +go build +mv go-bindata /usr/local/bin/ \ No newline at end of file