source: code/trunk/Makefile@ 66

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

M i m a s a m a ! ! !

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

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