~gpanders/wk

f75e06318a06fbfcc15aa125fe939500c559186b — Greg Anders 19 days ago 46560a6
Update Makefile with new project name
1 files changed, 14 insertions(+), 14 deletions(-)

M Makefile
M Makefile => Makefile +14 -14
@@ 1,29 1,29 @@
PREFIX   := /usr/local
BINDIR   := $(PREFIX)/bin
SHAREDIR := $(PREFIX)/share
prefix   = /usr/local
bindir   = $(PREFIX)/bin
sharedir = $(PREFIX)/share

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

.PHONY: all
all: zet
all: wk

zet: zig-cache/bin/zet
wk: zig-cache/bin/wk

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

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

.PHONY: install
install: zig-cache/bin/zet
	install -m 0755 $< $(BINDIR)
	install -m 0644 completions/fish/zet.fish $(SHAREDIR)/fish/vendor_completions.d/
	install -m 0644 completions/bash/zet $(SHAREDIR)/bash-completions/completions/
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)/zet
	rm $(SHAREDIR)/fish/vendor_completions.d/zet.fish
	rm $(SHAREDIR)/bash-completions/completions/zet
	rm $(bindir)/wk
	rm $(sharedir)/fish/vendor_completions.d/wk.fish
	rm $(sharedir)/bash-completion/completions/wk