Enable cross-compilation via the usual GOARCH/GOOS pair for use with make, also enable static builds
Signed-off-by: Aoi K <koizumi.aoi@chaotic.ninja> git-svn-id: file:///srv/svn/repo/suika/trunk@814 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
parent
94fa2da825
commit
3a3759687a
5
Makefile
5
Makefile
@ -1,7 +1,7 @@
|
||||
GO ?= go
|
||||
RM ?= rm
|
||||
SCDOC ?= scdoc
|
||||
GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)"
|
||||
GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)" -tags "static_build"
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR ?= bin
|
||||
MANDIR ?= share/man
|
||||
@ -13,6 +13,9 @@ COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
|
||||
BRANCH = `git rev-parse --abbrev-ref HEAD`
|
||||
BUILD = `git show -s --pretty=format:%cI`
|
||||
|
||||
GOARCH ?= amd64
|
||||
GOOS ?= linux
|
||||
|
||||
all: suika suikactl suika-znc-import doc/suika.1
|
||||
|
||||
suika:
|
||||
|
Loading…
x
Reference in New Issue
Block a user