Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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/...
Expand All @@ -24,4 +26,4 @@ lint:
@golangci-lint run
go mod verify

.PHONY: all tools generate build install
.PHONY: all tools generate build install
6 changes: 6 additions & 0 deletions install-bindata.sh
Original file line number Diff line number Diff line change
@@ -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/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it not automatically build it for you?. also if you have your GOBIN set then the mv shouldn't be necessary