Skip to content

Commit

Permalink
Makefile: Support building from source tarball
Browse files Browse the repository at this point in the history
Fixes #168
  • Loading branch information
shazow committed Aug 17, 2016
1 parent a9603fb commit d2f0849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -3,7 +3,7 @@ KEY = host_key
PORT = 2022

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

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

0 comments on commit d2f0849

Please sign in to comment.