Archived
1
0

makefile sanity checks

This commit is contained in:
Jeff Becker
2017-09-12 13:08:26 -04:00
parent 683d7b7179
commit 7b5ac6602f
2 changed files with 16 additions and 10 deletions

View File

@@ -1,15 +1,19 @@
GO ?= $(GOROOT)/bin/go
REPO=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
VERSION=$(shell $(GO) version | cut -d' ' -f3)
all: srndv2
all: build
srndv2:
GOPATH=$(REPO) go build -v
build: srndv2
assert-go:
test $(VERSION) = go1.9
srndv2: assert-go
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) build -v
clean:
GOPATH=$(REPO) go clean -v
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) clean -v
test:
GOPATH=$(REPO) go test -v -tags libsodium srnd
test-pure:
GOPATH=$(REPO) go test -v srnd
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) test -v srnd