Skip to content

Commit d2f0849

Browse files
committed
Makefile: Support building from source tarball
Fixes shazow#168
1 parent a9603fb commit d2f0849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ KEY = host_key
33
PORT = 2022
44

55
SRCS = %.go
6-
VERSION := $(shell git describe --tags --dirty --always)
6+
VERSION := $(shell git describe --tags --dirty --always 2> /dev/null || echo "dev")
77
LDFLAGS = LDFLAGS="-X main.Version=$(VERSION)"
88

99
SUBPACKAGES := $(shell go list ./... | grep -v /vendor/)

0 commit comments

Comments
 (0)