diff --git a/Makefile b/Makefile index 8863367..c23d353 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ GOTEST = $(GOCMD) test GOGET = $(GOCMD) get BINARY_NAME = donut BINARY_UNIX = $(BINARY_NAME)_unix +BINARY_WINDOWS = $(BINARY_NAME).exe all: test build build: @@ -16,6 +17,7 @@ clean: $(GOCLEAN) rm -f $(BINARY_NAME) rm -f $(BINARY_UNIX) + rm -f $(BINARY_WINDOWS) run: $(GOBUILD) -o $(BINARY_NAME) -v ./$(BINARY_NAME) @@ -23,3 +25,7 @@ deps: $(GOGET) ./... build-linux: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_UNIX) -v +build-mac: + CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME)_macos -v +build-windows: + CGO_ENABLED=0 GOOS=windows GOARCH=amd64 $(GOBUILD) -o $(BINARY_WINDOWS) -v