Makefile: use ARTIFACTDIR variable everywhere

refs #35
This commit is contained in:
Christian Schwarz 2017-11-18 16:20:14 +01:00
parent bfbab9382e
commit b276787dd4

View File

@ -37,10 +37,10 @@ cover: artifacts
fi; \
done;
artifacts:
mkdir artifacts
$(ARTIFACTDIR):
mkdir -p "$@"
release: artifacts vet test
release: $(ARTIFACTDIR) vet test docs
GOOS=linux GOARCH=amd64 go build -o "$(ARTIFACTDIR)/zrepl-linux-amd64"
GOOS=freebsd GOARCH=amd64 go build -o "$(ARTIFACTDIR)/zrepl-freebsd-amd64"