Last change
on this file since 15 was 13, checked in by yakumo.izuru, 2 years ago |
Long live Touhou
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
619 bytes
|
Line | |
---|
1 | PREFIX ?= /usr/local
|
---|
2 |
|
---|
3 | GOARCH ?= amd64
|
---|
4 | GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)" -tags "static_build"
|
---|
5 | GOOS ?= linux
|
---|
6 |
|
---|
7 | BRANCH = `git rev-parse --abbrev-ref HEAD`
|
---|
8 | BUILD = `git show -s --pretty=format:%cI`
|
---|
9 | COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
|
---|
10 | VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
|
---|
11 |
|
---|
12 | build:
|
---|
13 | go build $(GOFLAGS) ./cmd/suwako
|
---|
14 | strip suwako
|
---|
15 | clean:
|
---|
16 | rm -f suwako
|
---|
17 | install:
|
---|
18 | install -Dm0755 suwako ${PREFIX}/bin/suwako
|
---|
19 | uninstall:
|
---|
20 | rm -f ${PREFIX}/bin/suwako
|
---|
21 | rm -f ${PREFIX}/share/man/man1/suwako.1
|
---|
Note:
See
TracBrowser
for help on using the repository browser.