Skip to content

Commit

Permalink
Addded OS name to binary tarballs.
Browse files Browse the repository at this point in the history
  • Loading branch information
longsleep committed May 23, 2014
1 parent 763ddd7 commit 7df9a64
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ CONF := $(DESTDIR)/$(CONFIG_PATH)
SHARE := $(DESTDIR)/usr/share/spreed-webrtc-server

BUILD_ARCH := $(shell go env GOARCH)
BUILD_OS := $(shell go env GOOS)
DIST := $(CURDIR)/dist_$(BUILD_ARCH)
DIST_SRC := $(DIST)/src
DIST_BIN := $(DIST)/bin
Expand Down Expand Up @@ -185,6 +186,6 @@ tarball: DOCS = $(CONF)/docs
tarball: SHARE = $(TARPATH)/
tarball: distclean release install
echo -n $(VERSION) > $(TARPATH)/version.txt
tar czf $(DIST)/$(PACKAGE_NAME).tar.gz -C $(DIST) $(PACKAGE_NAME)
tar czf $(DIST)/$(PACKAGE_NAME)_$(BUILD_OS)_$(BUILD_ARCH).tar.gz -C $(DIST) $(PACKAGE_NAME)

.PHONY: hook clean distclean pristine get getupdate build styles javascript release releasetest dist_gopath install gopath binary binaryrace binaryall tarball assets
32 changes: 32 additions & 0 deletions doc/CROSSCOMPILE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Linux:

Target linux/amd64
GOOS=linux GOARCH=amd64 make tarball

Target linux/386:
GOOS=linux GOARCH=386 make tarball

Target linux/armv5
GOOS=linux GOARCH=arm GOARM=5 make tarball

Target linux/armv6
GOOS=linux GOARCH=arm GOARM=6 make tarball

Target linux/armv7
GOOS=linux GOARCH=arm GOARM=7 make tarball


Mac:

Target darwin/amd64
GOOS=darwin GOARCH=amd64 make tarball


Windows:

Target windows/386
GOOS=windows GOARCH=386 make tarball

Target windows/amd64
GOOS=windows GOARCH=amd64 make tarball

0 comments on commit 7df9a64

Please sign in to comment.