Skip to content

Commit

Permalink
improve makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jfallis committed Mar 16, 2024
1 parent 264d6bc commit 4aa314c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
Expand Down Expand Up @@ -28,7 +26,7 @@ build: vendor ## Build the project and put the output binary in out/bin/
GOOS=darwin GOARCH=amd64 go build -o $(BINARY_DIR)/$(BINARY_NAME)-amd64-macos
GOOS=darwin GOARCH=arm64 go build -o $(BINARY_DIR)/$(BINARY_NAME)-arm64-macos
GOOS=linux GOARCH=amd64 go build -o $(BINARY_DIR)/$(BINARY_NAME)-linux
zip -r collatz.zip $(BINARY_DIR)
zip -r $(BINARY_NAME).zip $(BINARY_DIR)

$(GOCMD) build -mod vendor -o $(BINARY_DIR)/$(BINARY_NAME) .

Expand Down

0 comments on commit 4aa314c

Please sign in to comment.