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