bugfix: only build jira tool with gox

previosly running the "make all" target build th schema binary with the
same name as the jira binaries. This caused the schema tool to be called
incorrectly. Gox performing parallel builds made this issue only happen
"somtimes".

Signed-off-by: ldelossa <ldelossa@redhat.com>
This commit is contained in:
ldelossa
2020-09-07 13:00:15 -04:00
committed by Louis DeLosSantos
parent a8c961fe19
commit aa8dae7c5b
+1 -1
View File
@@ -42,7 +42,7 @@ all:
GO111MODULE=off $(GO) get -u github.com/mitchellh/gox GO111MODULE=off $(GO) get -u github.com/mitchellh/gox
rm -rf dist rm -rf dist
mkdir -p dist mkdir -p dist
gox -ldflags="-w -s" -output="dist/github.com/go-jira/jira-{{.OS}}-{{.Arch}}" -osarch="darwin/amd64 linux/386 linux/amd64 windows/386 windows/amd64" ./... gox -ldflags="-w -s" -output="dist/github.com/go-jira/jira-{{.OS}}-{{.Arch}}" -osarch="darwin/amd64 linux/386 linux/amd64 windows/386 windows/amd64" ./cmd/jira
install: install:
${MAKE} GOBIN=$$HOME/bin build ${MAKE} GOBIN=$$HOME/bin build