source: code/trunk/Makefile@ 30

Last change on this file since 30 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
Line 
1PREFIX ?= /usr/local
2
3GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=${VERSION} -X `go list`.Commit=${COMMIT} -X `go list`.Build=${BUILD}" -tags "static_build"
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
10all: suwako
11
12suwako:
13 go build ${GOFLAGS} ./cmd/suwako
14clean:
15 rm -f suwako
16install:
17 install -Dm0755 suwako ${PREFIX}/bin/suwako
18 install -Dm0644 suwako.1 ${PREFIX}/share/man/man1/suwako.1
19 install -Dm0644 suwako.conf.5 ${PREFIX}/share/man/man5/suwako.conf.5
20uninstall:
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.