annotate Makefile @ 89:744541fee713 draft

Ayaya, why did I do that again?
author yakumo.izuru
date Sun, 04 May 2025 02:19:10 +0000
parents 01ae2ad18ed1
children 82986500ae71
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
66
787b5ee0289d Use vendored modules
yakumo.izuru
parents: 56
diff changeset
1 DESTDIR ?=
88
01ae2ad18ed1 風神「嵐の日」
yakumo.izuru
parents: 86
diff changeset
2 GO ?= go
01ae2ad18ed1 風神「嵐の日」
yakumo.izuru
parents: 86
diff changeset
3 GOFLAGS ?= -v -buildvcs=false -buildmode=exe -ldflags "-w -X `${GO} list`.Date=${DATE} -X `${GO} list`.Vendor=${GOOS} -X `${GO} list`.Version=${VERSION}"
66
787b5ee0289d Use vendored modules
yakumo.izuru
parents: 56
diff changeset
4 PREFIX ?= /usr/local
79
7b122b71fcfa A good time to finally release a stable version
yakumo.izuru
parents: 74
diff changeset
5 DATE ?= `date -u +%F`
88
01ae2ad18ed1 風神「嵐の日」
yakumo.izuru
parents: 86
diff changeset
6 GOOS ?= `${GO} env GOOS`
89
744541fee713 Ayaya, why did I do that again?
yakumo.izuru
parents: 88
diff changeset
7 VERSION ?= 1.0F+${REV}
744541fee713 Ayaya, why did I do that again?
yakumo.izuru
parents: 88
diff changeset
8 REV ?= `svn info --show-item revision || git rev-list --all | wc -l`
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
9 build:
88
01ae2ad18ed1 風神「嵐の日」
yakumo.izuru
parents: 86
diff changeset
10 ${GO} build ${GOFLAGS} ./cmd/aya
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
11 clean:
55
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
12 rm -f aya
74
d8727551f403 The Empress (III)
yakumo.izuru
parents: 67
diff changeset
13 dist:
d8727551f403 The Empress (III)
yakumo.izuru
parents: 67
diff changeset
14 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
15 install:
66
787b5ee0289d Use vendored modules
yakumo.izuru
parents: 56
diff changeset
16 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
787b5ee0289d Use vendored modules
yakumo.izuru
parents: 56
diff changeset
17 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
18 uninstall:
66
787b5ee0289d Use vendored modules
yakumo.izuru
parents: 56
diff changeset
19 rm -f ${PREFIX}/bin/aya
787b5ee0289d Use vendored modules
yakumo.izuru
parents: 56
diff changeset
20 rm -f ${PREFIX}/share/man/man1/aya.1