diff options
author | Mike Crute <mike@crute.us> | 2023-08-18 13:51:06 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-08-18 13:51:06 -0700 |
commit | aa0254d2eb8cfb89d594861dcb3c9af2b0cf2b89 (patch) | |
tree | d280d83df6a0cbda5eb21de30601d2312f8e8413 /Makefile | |
parent | a0328f36938dc2f78e9c1df0735edb8d16528d39 (diff) | |
download | websocket_proxy-aa0254d2eb8cfb89d594861dcb3c9af2b0cf2b89.tar.bz2 websocket_proxy-aa0254d2eb8cfb89d594861dcb3c9af2b0cf2b89.tar.xz websocket_proxy-aa0254d2eb8cfb89d594861dcb3c9af2b0cf2b89.zip |
Simplify main and version
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ $(SERVER_BINARY): $(SERVER_FILES) | |||
9 | @mkdir clients/ || true | 9 | @mkdir clients/ || true |
10 | @touch clients/keep | 10 | @touch clients/keep |
11 | CGO_ENABLED=0 go build \ | 11 | CGO_ENABLED=0 go build \ |
12 | -ldflags "-X main.appVersion=$(shell git describe --long --tags --dirty --always) \ | 12 | -ldflags "-X main.version=$(shell git describe --long --tags --dirty --always) \ |
13 | -X code.crute.us/mcrute/ssh-proxy/cmd/client.clientId=$(CLIENT_ID)" \ | 13 | -X code.crute.us/mcrute/ssh-proxy/cmd/client.clientId=$(CLIENT_ID)" \ |
14 | -o $@ | 14 | -o $@ |
15 | 15 | ||
@@ -19,7 +19,7 @@ client: | |||
19 | 19 | ||
20 | CGO_ENABLED=0 go build \ | 20 | CGO_ENABLED=0 go build \ |
21 | -tags clientonly \ | 21 | -tags clientonly \ |
22 | -ldflags "-X main.appVersion=$(shell git describe --long --tags --dirty --always) \ | 22 | -ldflags "-X main.version=$(shell git describe --long --tags --dirty --always) \ |
23 | -X code.crute.us/mcrute/ssh-proxy/cmd/client.clientId=$(CLIENT_ID) \ | 23 | -X code.crute.us/mcrute/ssh-proxy/cmd/client.clientId=$(CLIENT_ID) \ |
24 | -s -w" \ | 24 | -s -w" \ |
25 | -o $(OUTFILE) | 25 | -o $(OUTFILE) |