From 440d24f2d43fb28c4700fc2832d1fed850636b95 Mon Sep 17 00:00:00 2001 From: Dan Petersen Date: Mon, 16 Dec 2019 02:18:23 +0100 Subject: [PATCH] Update Makefile --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 47f3a67a..0732d73a 100644 --- a/Makefile +++ b/Makefile @@ -27,14 +27,14 @@ example-plan: fmt: gofmt -w $(GOFMT_FILES) -test: - go test -v ./... - init: go get ./... targets: $(TARGETS) +test: + go test -v ./... + $(TARGETS): GOOS=$@ GOARCH=amd64 CGO_ENABLED=0 go build \ -o "dist/$@/$(NAME)_v$(VERSION)-custom_x4" \ @@ -43,4 +43,4 @@ $(TARGETS): -j "dist/$(NAME)_v$(VERSION)-custom_$@_amd64.zip" \ "dist/$@/$(NAME)_v$(VERSION)-custom_x4" -.PHONY: build example example-apply example-destroy example-init example-plan fmt test init targets $(TARGETS) +.PHONY: build example example-apply example-destroy example-init example-plan fmt init targets test $(TARGETS)