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:
koizumi.aoi
2023-03-25 16:43:22 +00:00
parent 13be100b46
commit 393a3db9bc
3 changed files with 18 additions and 71 deletions

View File

@@ -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