Skip to content

Commit

Permalink
Add make target 'go-cross-compile' for running cross compilation (for…
Browse files Browse the repository at this point in the history
… a release)
  • Loading branch information
apflieger committed Jan 10, 2017
1 parent ee9993b commit 4de89a5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,16 @@ uninstall:
rm $(man1dir)/git-octopus.1
rm $(man1dir)/git-conflict.1
rm $(htmldir)/git-octopus.html
rm $(htmldir)/git-conflict.html
rm $(htmldir)/git-conflict.html

go-build = GOOS=$(1) GOARCH=$(2) go build -o git-octopus-$(1)-$(2)-2.0.beta1

go-cross-compile:
$(call go-build,darwin,386)
$(call go-build,darwin,amd64)
$(call go-build,freebsd,386)
$(call go-build,freebsd,amd64)
$(call go-build,linux,386)
$(call go-build,linux,amd64)
$(call go-build,windows,386)
$(call go-build,windows,amd64)

0 comments on commit 4de89a5

Please sign in to comment.