source: Main/branches/origin-master/Makefile

Last change on this file was 4a5f10f, checked in by www <www@…>, 8 weeks ago

Mirrored from https://git.chaotic.ninja/git/yakumo_izuru/yukari

git-svn-id: https://svn.chaotic.ninja/svn/yukari-yakumo.izuru@1 ee30ecee-8fc8-4245-a645-e3b2cc3919a6

  • Property mode set to 100644
File size: 923 bytes
RevLine 
[4a5f10f]1GO ?= go
2RM ?= rm
3GOFLAGS ?= -v -mod=vendor
4PREFIX ?= /usr/local
5BINDIR ?= bin
6MANDIR ?= share/man
7MKDIR ?= mkdir
8CP ?= cp
9SYSCONFDIR ?= /etc
10
11VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
12COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
13BRANCH = `git rev-parse --abbrev-ref HEAD`
14BUILD = `git show -s --pretty=format:%cI`
15
16GOARCH ?= amd64
17GOOS ?= linux
18
19all: yukari
20
21yukari: vendor
22 env GOARCH=${GOARCH} GOOS=${GOOS} ${GO} build ${GOFLAGS} ./cmd/yukari
23clean:
24 ${RM} -f yukari
25install:
26 ${MKDIR} -p ${DESTDIR}${PREFIX}/${BINDIR}
27 ${MKDIR} -p ${DESTDIR}${PREFIX}/${MANDIR}/man1
28 ${MKDIR} -p ${DESTDIR}${PREFIX}/${MANDIR}/man5
29
30 ${CP} -f yukari ${DESTDIR}${PREFIX}/${BINDIR}
31 ${CP} -f yukari.1 ${DESTDIR}${PREFIX}/${MANDIR}/man1
32 ${CP} -f yukari.ini.5 ${DESTDIR}${PREFIX}/${MANDIR}/man5
33test:
34 go test
35bench:
36 go test -benchmem -bench .
37vendor:
38 go mod vendor
39.PHONY: yukari clean install
Note: See TracBrowser for help on using the repository browser.