This repository has been archived by the owner on Aug 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add really long package section because I'm lazy.
- Loading branch information
1 parent
b5f23f2
commit 674a28c
Showing
1 changed file
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
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 |