Last change
on this file since 67 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
|
Rev | Line | |
---|
[65] | 1 | GO ?= go
|
---|
| 2 | GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=${VERSION} -X `go list`.Commit=${COMMIT} -X `go list`.Build=${BUILD}"
|
---|
| 3 | CGO ?= 0
|
---|
| 4 |
|
---|
| 5 | VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
|
---|
| 6 | COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
|
---|
| 7 | BRANCH = `git rev-parse --abbrev-ref HEAD`
|
---|
| 8 | BUILD = `git show -s --pretty=format:%cI`
|
---|
| 9 |
|
---|
| 10 | PREFIX ?= /usr/local
|
---|
| 11 |
|
---|
| 12 | all: marisa marisa-trash
|
---|
| 13 |
|
---|
| 14 | marisa:
|
---|
| 15 | CGO_ENABLED=${CGO} go build ${GOFLAGS} ./cmd/marisa
|
---|
| 16 | marisa-trash:
|
---|
| 17 | CGO_ENABLED=${CGO} go build ${GOFLAGS} ./cmd/marisa-trash
|
---|
| 18 | clean:
|
---|
| 19 | rm -f marisa marisa-trash
|
---|
| 20 | install:
|
---|
| 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.