source: code/trunk/Makefile@ 12

Last change on this file since 12 was 12, checked in by koizumi.aoi, 2 years ago

feat: stop hardcoding default instance and engine, also other minor changes.

File size: 612 bytes
Line 
1PREFIX ?= /usr/local
2
3GOARCH ?= amd64
4GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)" -tags "static_build"
5GOOS ?= linux
6
7BRANCH = `git rev-parse --abbrev-ref HEAD`
8BUILD = `git show -s --pretty=format:%cI`
9COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
10VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
11
12build:
13 go build $(GOFLAGS) ./cmd/stcli
14 strip stcli
15clean:
16 rm -f stcli
17install:
18 install -Dm0755 stcli ${PREFIX}/bin/stcli
19uninstall:
20 rm -f ${PREFIX}/bin/stcli
21 rm -f ${PREFIX}/share/man/man1/stcli.1
Note: See TracBrowser for help on using the repository browser.