~gpanders/wk

wk/Makefile -rw-r--r-- 656 bytes View raw
cecdf425 — Gregory Anders Highlight triple dots as closing front matter fence 3 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
prefix   = /usr/local
bindir   = $(PREFIX)/bin
sharedir = $(PREFIX)/share

SRCS := $(shell find src -name '*.zig')

.PHONY: all
all: wk

wk: zig-cache/bin/wk

zig-cache/bin/wk: $(SRCS)
	zig build -Drelease-small=true

.PHONY: clean
clean:
	rm -rf zig-cache/bin/wk

.PHONY: install
install: zig-cache/bin/wk
	install -m 0755 $< $(bindir)
	install -m 0644 contrib/completions/fish/wk.fish $(sharedir)/fish/vendor_completions.d/
	install -m 0644 contrib/completions/bash/wk $(sharedir)/bash-completion/completions/

.PHONY: uninstall
uninstall:
	rm $(bindir)/wk
	rm $(sharedir)/fish/vendor_completions.d/wk.fish
	rm $(sharedir)/bash-completion/completions/wk