Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusOllah committed Nov 10, 2023
1 parent f8b9f01 commit ae38e03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ae38e03

Please sign in to comment.