Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Commit

Permalink
Add really long package section because I'm lazy.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen304 committed Feb 25, 2015
1 parent b5f23f2 commit 674a28c
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions api/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,44 @@
build: clean prep config
go build -o build/bitcannon
go build -o build/bitcannon_bin
deploy: clean prep config
gox -output="build/bitcannon_{{.OS}}_{{.Arch}}"

clean:
rm -rf build
prep:
mkdir build
mkdir -p build/bitcannon
go-bindata -nocompress=true web/...
config:
cp config.json build/
cp config.json build/bitcannon/

package:
rm -rf build/bitcannon/bitcannon*
cp build/bitcannon_darwin_* build/bitcannon
cd build; \
zip -r BC_MacOSX_v$(VERSION).zip bitcannon

rm -rf build/bitcannon/bitcannon*
cp build/bitcannon_freebsd_* build/bitcannon
cd build; \
zip -r BC_FreeBSD_v$(VERSION).zip bitcannon

rm -rf build/bitcannon/bitcannon*
cp build/bitcannon_linux_* build/bitcannon
cd build; \
zip -r BC_Linux_v$(VERSION).zip bitcannon

rm -rf build/bitcannon/bitcannon*
cp build/bitcannon_netbsd_* build/bitcannon
cd build; \
zip -r BC_NetBSD_v$(VERSION).zip bitcannon

rm -rf build/bitcannon/bitcannon*
cp build/bitcannon_openbsd_* build/bitcannon
cd build; \
zip -r BC_OpenBSD_v$(VERSION).zip bitcannon

rm -rf build/bitcannon/bitcannon*
cp build/bitcannon_windows_* build/bitcannon
cd build; \
zip -r BC_Windows_v$(VERSION).zip bitcannon

0 comments on commit 674a28c

Please sign in to comment.