* enable cross compile srndv2
* fix up kqueue code in nntpchan-daemon
This commit is contained in:
@@ -2,13 +2,15 @@ GOROOT ?= $(shell go env GOROOT)
|
||||
GO ?= $(GOROOT)/bin/go
|
||||
REPO=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
VERSION=$(shell $(GO) version | cut -d' ' -f3)
|
||||
|
||||
GOARCH ?= $(shell go env GOARCH)
|
||||
GOOS ?= $(shell go env GOOS)
|
||||
GOARM ?= $(shell go env GOARM)
|
||||
all: build
|
||||
|
||||
build: srndv2
|
||||
|
||||
srndv2:
|
||||
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) build -ldflags "-X srnd.GitVersion=-$(shell git rev-parse --short HEAD)" -v
|
||||
GOARM=$(GOARM) GOOS=$(GOOS) GOARCH=$(GOARCH) GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) build -ldflags "-X srnd.GitVersion=-$(shell git rev-parse --short HEAD)" -v
|
||||
|
||||
srndv2-lua:
|
||||
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) build -ldflags "-X srnd.GitVersion=-$(shell git rev-parse --short HEAD)" -tags lua -v
|
||||
|
Reference in New Issue
Block a user