From e928b337e76a47a08545e74edb691de38484004f Mon Sep 17 00:00:00 2001 From: Jakob Schrettenbrunner Date: Tue, 27 Jun 2017 12:42:56 +0200 Subject: [PATCH] Add makefile to simplify some tasks --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e457103 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +BINARY = "build/wings" + +all: $(BINARY) + +$(BINARY): + go build -o $(BINARY) + +cross-build: + gox -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}" + +.PHONY: install +install: + go install + +test: + go test `go list ./... | grep -v "/vendor/"` + +coverage: + goverage -coverprofile=coverage.out ./... + go tool cover -html=coverage.out + +dependencies: + dep ensure + +install-tools: + go get -u github.com/golang/dep/cmd/dep + go get -u github.com/mitchellh/gox + go get -u github.com/haya14busa/goverage