annotate Makefile @ 90:82986500ae71 draft default tip

Update repository URLs
author yakumo.izuru
date Thu, 15 May 2025 01:25:32 +0000
parents 744541fee713
children
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
90
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
5 BINDIR ?= ${PREFIX}/bin
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
6 MANDIR ?= ${PREFIX}/man
79
7b122b71fcfa A good time to finally release a stable version
yakumo.izuru
parents: 74
diff changeset
7 DATE ?= `date -u +%F`
88
01ae2ad18ed1 風神「嵐の日」
yakumo.izuru
parents: 86
diff changeset
8 GOOS ?= `${GO} env GOOS`
90
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
9 VERSION ?= 1.0G+${REV}
89
744541fee713 Ayaya, why did I do that again?
yakumo.izuru
parents: 88
diff changeset
10 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
11 build:
88
01ae2ad18ed1 風神「嵐の日」
yakumo.izuru
parents: 86
diff changeset
12 ${GO} build ${GOFLAGS} ./cmd/aya
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
13 clean:
55
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
14 rm -f aya
90
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
15 pre-install:
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
16 mkdir -p ${DESTDIR}${BINDIR}
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
17 mkdir -p ${DESTDIR}${MANDIR}/man1
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
18 install:
90
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
19 install -m0755 aya ${DESTDIR}${BINDIR}
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
20 install -m0644 aya.1 ${DESTDIR}${MANDIR}/man1
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
21 uninstall:
90
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
22 rm -f ${DESTDIR}${BINDIR}/aya
82986500ae71 Update repository URLs
yakumo.izuru
parents: 89
diff changeset
23 rm -f ${DESTDIR}${MANDIR}/man1/aya.1