diff options
author | Mike Crute <mike@crute.us> | 2019-12-07 13:36:14 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-12-07 13:36:14 -0800 |
commit | 219288c98477e392242e5dcca300d20062b3c670 (patch) | |
tree | af5e074287a8544d2180d151c962c41207a86d75 /Makefile | |
parent | 0f4f1cb33dac5637b4054801af413d1b9e9aab1e (diff) | |
download | websocket_proxy-219288c98477e392242e5dcca300d20062b3c670.tar.bz2 websocket_proxy-219288c98477e392242e5dcca300d20062b3c670.tar.xz websocket_proxy-219288c98477e392242e5dcca300d20062b3c670.zip |
Set version at build time
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ IMAGE="docker.crute.me/websocket-proxy" | |||
2 | VERSION="0.1.0" | 2 | VERSION="0.1.0" |
3 | 3 | ||
4 | websocket-proxy: main.go sockets.go server.go client.go | 4 | websocket-proxy: main.go sockets.go server.go client.go |
5 | CGO_ENABLED=0 go build -o $@ $^ | 5 | CGO_ENABLED=0 go build -ldflags "-X main.version=$(VERSION)" -o $@ $^ |
6 | 6 | ||
7 | .PHONY: docker | 7 | .PHONY: docker |
8 | docker: websocket-proxy | 8 | docker: websocket-proxy |