From ae38e03cb563fdb9ed7aa5773cc077b8d0509fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Ollah?= Date: Fri, 10 Nov 2023 16:14:15 +0100 Subject: [PATCH] Update Makefile --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c204e77..563a7a3 100644 --- a/Makefile +++ b/Makefile @@ -11,12 +11,17 @@ GOARCH=$(shell go env GOARCH) all: build .PHONY: build -build: +build: clean mkdir -p $(BINARY)/$(GOOS)-$(GOARCH) $(GO) get GO111MODULE=on GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO) build $(FLAGS) -o $(BINARY)/$(GOOS)-$(GOARCH) +.PHONY: install +install: + $(GO) get + GO111MODULE=on GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO) install $(FLAGS) + .PHONY: clean clean: rm -rf $(BINARY)/$(GOOS)-$(GOARCH) \ No newline at end of file