annotate Makefile @ 63:1bd8a674a30c draft

Replace some fmt calls with log Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Sat, 29 Apr 2023 04:42:07 +0000
parents 315dee06253e
children 787b5ee0289d
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
56
315dee06253e Make use of tags
yakumo.izuru
parents: 55
diff changeset
4 version ?= `git describe --abbrev=0 --tags || echo "$version"`
55
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