1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
cowyo/Makefile
Zack Scholl bd85204eff Bump version in Makefile
Former-commit-id: 456a4137adadb4044e720f04ac8ec6ab7b3d80d6 [formerly 12de613c2e4c46aca255f15f04e9b2819e51f2a0] [formerly 64bc5f9527ec3babaeade20a5601cf43a6b239a4 [formerly 3168d427d4b6f85a2caedae527a2f78a13988db3 [formerly c8e237c3c5]]]
Former-commit-id: 70bc9dc28a3c99506768567cb4f2eb1a9479c393 [formerly 687f78214d9de740f9e4492cd2d383bcbd0da2c4]
Former-commit-id: dad5e45520f127757318cc867f2013492aeb3501
Former-commit-id: 7b0bfea196
2017-03-22 21:43:47 -06:00

21 lines
553 B
Makefile

VERSION=2.0.0
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}"
.PHONY: build
build:
go-bindata static/... templates/...
go build
.PHONY: release
release:
rm -rf dist/
mkdir dist/
env GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o dist/cowyo_linux_amd64
cd dist && upx --brute cowyo_linux_amd64
env GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -o dist/cowyo_windows_amd64.exe
cd dist && upx --brute cowyo_windows_amd64.exe
env GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o dist/cowyo_osx_amd64
cd dist && upx --brute cowyo_osx_amd64