source: code/trunk/Makefile@ 18

Last change on this file since 18 was 18, checked in by yakumo.izuru, 21 months ago

SimplyTranslate broke the API again, also add another flavor

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 850 bytes
RevLine 
[12]1PREFIX ?= /usr/local
[5]2
[12]3GOARCH ?= amd64
[18]4GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=${VERSION} -X `go list`.Commit=${COMMIT} -X `go list`.Build=${BUILD}" -tags "static_build"
[12]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
[18]12all: suwako suwako-mozhi
13
14suwako:
15 go build ${GOFLAGS} ./cmd/suwako
16suwako-mozhi:
17 go build ${GOFLAGS} ./cmd/suwako-mozhi
[3]18clean:
[18]19 rm -f suwako suwako-mozhi
[11]20install:
[13]21 install -Dm0755 suwako ${PREFIX}/bin/suwako
[18]22 install -Dm0755 suwako-mozhi ${PREFIX}/bin/suwako-mozhi
[17]23 install -Dm0644 suwako.1 ${PREFIX}/share/man/man1/suwako.1
[5]24uninstall:
[13]25 rm -f ${PREFIX}/bin/suwako
[18]26 rm -f ${PREFIX}/bin/suwako-mozhi
[13]27 rm -f ${PREFIX}/share/man/man1/suwako.1
Note: See TracBrowser for help on using the repository browser.