summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2019-12-07 13:36:14 -0800
committerMike Crute <mike@crute.us>2019-12-07 13:36:14 -0800
commit219288c98477e392242e5dcca300d20062b3c670 (patch)
treeaf5e074287a8544d2180d151c962c41207a86d75 /Makefile
parent0f4f1cb33dac5637b4054801af413d1b9e9aab1e (diff)
downloadwebsocket_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--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d629150..7a77930 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ IMAGE="docker.crute.me/websocket-proxy"
2VERSION="0.1.0" 2VERSION="0.1.0"
3 3
4websocket-proxy: main.go sockets.go server.go client.go 4websocket-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
8docker: websocket-proxy 8docker: websocket-proxy