~gpanders/wk

wk/Makefile -rw-r--r-- 758 bytes
4f358b1aGregory Anders Import std.io in main.zig a month ago
                                                                                
f75e0631 Greg Anders
2e7bd3b5 Greg Anders
05bce6e0 Greg Anders
4db85086 Greg Anders
f75e0631 Greg Anders
2e7bd3b5 Greg Anders
f75e0631 Greg Anders
2e7bd3b5 Greg Anders
f75e0631 Greg Anders
2e7bd3b5 Greg Anders
4db85086 Greg Anders
2e7bd3b5 Greg Anders
f75e0631 Greg Anders
2e7bd3b5 Greg Anders
4db85086 Greg Anders
f75e0631 Greg Anders
f75e0631 Greg Anders
2e7bd3b5 Greg Anders
4db85086 Greg Anders
2e7bd3b5 Greg Anders
f75e0631 Greg Anders
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
30
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 -d $(bindir) $(sharedir)/fish/vendor_completions.d/ $(sharedir)/bash-completion/completions/
	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