annotate Makefile @ 55:c6785950280e draft

The fastest, period. Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Sun, 09 Apr 2023 02:39:19 +0000
parents 4d411cdd68c1
children 315dee06253e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
1 destdir ?=
55
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
2 goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build"
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
3 prefix ?= /usr/local
55
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
4 version ?= `git rev-list --count HEAD || echo "$version"`
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
5 commit ?= `git rev-parse --short HEAD || echo "$commit"`
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
6
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
7
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
8 build:
55
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
9 go build ${goflags} ./cmd/aya
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
10 clean:
55
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
11 rm -f aya
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
12 install:
55
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
13 install -Dm0755 aya ${destdir}${prefix}/bin/aya
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
14 install -Dm0644 aya.1 ${destdir}${prefix}/share/man/man1/aya.1
54
4d411cdd68c1 Updated manual page and added a Makefile
novaburst
parents:
diff changeset
15 uninstall:
55
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
16 rm -f ${prefix}/bin/aya
c6785950280e The fastest, period.
yakumo.izuru
parents: 54
diff changeset
17 rm -f ${prefix}/share/man/man1/aya.1