]> Cypherpunks.ru repositories - nncp.git/blob - GNUmakefile
Determine go.mod support and corresponding envvars
[nncp.git] / GNUmakefile
1 VERSION = $(shell cat VERSION)
2 GO ?= go
3
4 GO_MOD_EXISTS = $(shell $(GO) help mod >/dev/null 2>&1 || echo no)
5
6 ifeq ($(GO_MOD_EXISTS), no)
7 BUILDMOD ?=
8 GOPATH ?= $(PWD)
9 else
10 BUILDMOD ?= -mod=vendor
11 GOPATH ?= $(PWD)/gopath
12 endif
13
14 include common.mk