Skip to content

Commit

Permalink
Merge pull request #3 from donkeyx/package-windows
Browse files Browse the repository at this point in the history
Renamed packages and added wind'dows as well
  • Loading branch information
donkeyx authored Mar 14, 2020
2 parents b6bff01 + c9cc65c commit a3b18d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ build-all:
$(info ld-flags is $(BUILD_FLAGS))

$(BUILD_FLAGS) -o ./bin/$(BINARY_NAME) -v
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(BUILD_FLAGS) -o bin/linux/$(BINARY_NAME) -v
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(BUILD_FLAGS) -o bin/mac/$(BINARY_NAME) -v
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(BUILD_FLAGS) -o bin/$(BINARY_NAME).linux.amd64 -v
CGO_ENABLED=0 GOOS=windows GOARCH=386 $(BUILD_FLAGS) -o bin/$(BINARY_NAME).windows.amd64 -v
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(BUILD_FLAGS) -o bin/$(BINARY_NAME).darwin.amd64 -v

docker-build:
docker run --rm -it -v "$(GOPATH)":/go -w /go/src/bitbucket.org/rsohlich/makepost golang:latest go build -o "$(BINARY_NAME)" -v

0 comments on commit a3b18d4

Please sign in to comment.