feat: stop hardcoding default instance and engine, also other minor changes.
git-svn-id: file:///srv/svn/repo/suwako/trunk@12 0b558ee1-521d-8b46-a41b-40029c97c055
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,7 +1,16 @@
|
||||
PREFIX=/usr/local
|
||||
PREFIX ?= /usr/local
|
||||
|
||||
GOARCH ?= amd64
|
||||
GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)" -tags "static_build"
|
||||
GOOS ?= linux
|
||||
|
||||
BRANCH = `git rev-parse --abbrev-ref HEAD`
|
||||
BUILD = `git show -s --pretty=format:%cI`
|
||||
COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
|
||||
VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
|
||||
|
||||
build:
|
||||
go build
|
||||
go build $(GOFLAGS) ./cmd/stcli
|
||||
strip stcli
|
||||
clean:
|
||||
rm -f stcli
|
||||
|
||||
Reference in New Issue
Block a user