source: code/trunk/Makefile@ 28

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

Documentation update and relicense as Beerware

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

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