source: code/trunk/Makefile@ 89

Last change on this file since 89 was 89, checked in by Izuru Yakumo, 7 weeks ago

風神「嵐の日」

File size: 585 bytes
Line 
1DESTDIR ?=
2GO ?= go
3GOFLAGS ?= -v -buildvcs=false -buildmode=exe -ldflags "-w -X `${GO} list`.Date=${DATE} -X `${GO} list`.Vendor=${GOOS} -X `${GO} list`.Version=${VERSION}"
4PREFIX ?= /usr/local
5DATE ?= `date -u +%F`
6GOOS ?= `${GO} env GOOS`
7VERSION ?= 1.0F
8build:
9 ${GO} build ${GOFLAGS} ./cmd/aya
10clean:
11 rm -f aya
12dist:
13 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
14install:
15 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
16 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
17uninstall:
18 rm -f ${PREFIX}/bin/aya
19 rm -f ${PREFIX}/share/man/man1/aya.1
Note: See TracBrowser for help on using the repository browser.