Mercurial > yakumo_izuru > aya
annotate Makefile @ 88:01ae2ad18ed1 draft
風神「嵐の日」
| author | yakumo.izuru |
|---|---|
| date | Thu, 17 Apr 2025 14:06:12 +0000 |
| parents | 897d57a7ec95 |
| children | 744541fee713 |
| rev | line source |
|---|---|
| 66 | 1 DESTDIR ?= |
| 88 | 2 GO ?= go |
| 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 | 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 | 6 GOOS ?= `${GO} env GOOS` |
| 7 VERSION ?= 1.0F | |
| 54 | 8 build: |
| 88 | 9 ${GO} build ${GOFLAGS} ./cmd/aya |
| 54 | 10 clean: |
| 55 | 11 rm -f aya |
| 74 | 12 dist: |
| 13 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD | |
| 54 | 14 install: |
| 66 | 15 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya |
| 16 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1 | |
| 54 | 17 uninstall: |
| 66 | 18 rm -f ${PREFIX}/bin/aya |
| 19 rm -f ${PREFIX}/share/man/man1/aya.1 |
