Mercurial > yakumo_izuru > aya
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 |
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` |
89 | 7 VERSION ?= 1.0F+${REV} |
8 REV ?= `svn info --show-item revision || git rev-list --all | wc -l` | |
54 | 9 build: |
88 | 10 ${GO} build ${GOFLAGS} ./cmd/aya |
54 | 11 clean: |
55 | 12 rm -f aya |
74 | 13 dist: |
14 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD | |
54 | 15 install: |
66 | 16 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya |
17 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1 | |
54 | 18 uninstall: |
66 | 19 rm -f ${PREFIX}/bin/aya |
20 rm -f ${PREFIX}/share/man/man1/aya.1 |