Merge pull request #68 from akumria/master

Changed Make target to build OS specific exec.
mine
Fernand Galiana 2019-02-19 18:22:15 -07:00 committed by GitHub
commit 33f1cab316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -8,11 +8,11 @@ cover: ## Run test coverage suite
@go test ./... --coverprofile=cov.out
@go tool cover --html=cov.out
osx: ## Builds OSX CLI
@env GOOS=darwin GOARCH=amd64 go build \
build: ## Builds the CLI
@go build \
-ldflags "-w -X ${PACKAGE}/cmd.Version=${VERSION}" \
-a -tags netgo -o execs/${NAME} *.go
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[38;5;69m%-30s\033[38;5;168m %s\n", $$1, $$2}'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[38;5;69m%-30s\033[38;5;0m %s\n", $$1, $$2}'