-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
17 lines (14 loc) · 723 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GIT = $(shell git rev-parse --git-dir | xargs readlink -f)
ROOT = $(shell readlink -f ${GIT}/../)
zre-msg:
gsl -script:zproto_codec_go zre_msg.xml
docker-image:
go build -a -ldflags '-extldflags "-lm -lstdc++ -lsodium -static"' github.com/zeromq/gyre/examples/chat 2>/dev/null
go build -a -ldflags '-extldflags "-lm -lstdc++ -lsodium -static"' github.com/zeromq/gyre/examples/ping 2>/dev/null
go build -a -ldflags '-extldflags "-lm -lstdc++ -lsodium -static"' github.com/zeromq/gyre/cmd/monitor 2>/dev/null
tar cvfz misc/bins-linux-x86_64.tar.gz chat ping monitor
rm chat ping monitor
docker build -t armen/gyre .
gofmt-hook:
cp ${ROOT}/misc/gofmt-hook/pre-commit ${GIT}/hooks/
chmod +x ${GIT}/hooks/pre-commit