Commit 1f1f44bc authored by Jordan Sissel's avatar Jordan Sissel
Browse files

- fail if the version of go is too old or if go is missing.

parent f3ba3dd9
......@@ -18,6 +18,12 @@ build-all: build/bin/lumberjack build/bin/
#build-all: build/bin/keygen
include Makefile.ext
.PHONY: go-check
@go version > /dev/null || (echo "Go not found. You need to install go:"; false)
@go version | grep -q 'go version go1.1' || (echo "Go version 1.1.x required, you have a version of go that is too old See for upgrading."; false)
-@rm -fr build bin pkg
......@@ -65,10 +71,10 @@ endif # libsodium
build/bin/ | build/bin
install -m 755 $^ $@
build/bin/lumberjack: | build/bin
build/bin/lumberjack: | build/bin go-check
PKG_CONFIG_PATH=$$PWD/build/lib/pkgconfig \
go build -ldflags '-r $$ORIGIN/../lib' -v -o $@
build/bin/keygen: | build/bin
build/bin/keygen: | build/bin go-check
PKG_CONFIG_PATH=$$PWD/build/lib/pkgconfig \
go install -ldflags '-r $$ORIGIN/../lib' -o $@
......@@ -84,7 +90,7 @@ build/lib: | build
mkdir $@
# gozmq
src/ go-check
go get -d
pkg/linux_amd64/ | build/lib/libzmq.$(LIBEXT)
pkg/linux_amd64/ src/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment