From b276787dd46ebf939e0738d6be404684e2b1cf4d Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sat, 18 Nov 2017 16:20:14 +0100 Subject: [PATCH] Makefile: use ARTIFACTDIR variable everywhere refs #35 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b3238fe..d3d90fe 100644 --- a/Makefile +++ b/Makefile @@ -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"