source: code/trunk/Makefile@ 66

Last change on this file since 66 was 57, checked in by Izuru Yakumo, 2 years ago

Make use of tags

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

File size: 518 bytes
Line 
1destdir ?=
2goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build"
3prefix ?= /usr/local
4version ?= `git describe --abbrev=0 --tags || echo "$version"`
5commit ?= `git rev-parse --short HEAD || echo "$commit"`
6
7
8build:
9 go build ${goflags} ./cmd/aya
10clean:
11 rm -f aya
12install:
13 install -Dm0755 aya ${destdir}${prefix}/bin/aya
14 install -Dm0644 aya.1 ${destdir}${prefix}/share/man/man1/aya.1
15uninstall:
16 rm -f ${prefix}/bin/aya
17 rm -f ${prefix}/share/man/man1/aya.1
Note: See TracBrowser for help on using the repository browser.