-
-
Save brainwire/929e5244eac5a2372a831b36b69a907d to your computer and use it in GitHub Desktop.
Go Make
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLATFORMS := linux/amd64 windows/amd64 | |
temp = $(subst /, ,$@) | |
os = $(word 1, $(temp)) | |
arch = $(word 2, $(temp)) | |
release: $(PLATFORMS) | |
$(PLATFORMS): | |
GOOS=$(os) GOARCH=$(arch) go build -o '$(os)-$(arch)' mypackage | |
.PHONY release $(PLATFORMS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment