source: code/trunk/Makefile@ 21

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

feat: remove suwako-mozhi, actually bother to fix the main thing

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

File size: 679 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
[20]12all: suwako
[18]13
14suwako:
15 go build ${GOFLAGS} ./cmd/suwako
[3]16clean:
[20]17 rm -f suwako
[11]18install:
[13]19 install -Dm0755 suwako ${PREFIX}/bin/suwako
[17]20 install -Dm0644 suwako.1 ${PREFIX}/share/man/man1/suwako.1
[5]21uninstall:
[13]22 rm -f ${PREFIX}/bin/suwako
23 rm -f ${PREFIX}/share/man/man1/suwako.1
Note: See TracBrowser for help on using the repository browser.