-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
23 lines (19 loc) · 857 Bytes
/
makefile
File metadata and controls
23 lines (19 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man
BASHCOMPDIR ?= $(PREFIX)/share/bash-completion/completions
ZSHCOMPDIR ?= $(PREFIX)/share/zsh/site-functions
FISHCOMPDIR ?= $(PREFIX)/share/fish/vendor_completions.d
VERSIONSTR ?= borzoi version 0.1.0, built from commit $$(git rev-parse --short HEAD) on $$(git branch --show-current)
build:
odin build src -out:borzoi \
-define:VERSION="$(VERSIONSTR)"
debug:
odin build src -debug -out:borzoi \
-define:VERSION="$(VERSIONSTR)"
install: build
install -Dm755 borzoi "$(DESTDIR)$(BINDIR)/borzoi"
install -Dm644 static/borzoi.1 "$(DESTDIR)$(MANDIR)/man1/borzoi.1"
install -Dm644 static/borzoi.bash "$(DESTDIR)$(BASHCOMPDIR)/borzoi"
install -Dm644 static/borzoi.zsh "$(DESTDIR)$(ZSHCOMPDIR)/_borzoi"
install -Dm644 static/borzoi.fish "$(DESTDIR)$(FISHCOMPDIR)/borzoi.fish"