feat: add makefile
This commit is contained in:
20
Makefile
Normal file
20
Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
PREFIX ?= $(HOME)/.local
|
||||
BINDIR := $(PREFIX)/bin
|
||||
FISH_COMPDIR := $(PREFIX)/share/fish/vendor_completions.d
|
||||
|
||||
chot := bin/chot
|
||||
fish_completion := completions/chot.fish
|
||||
|
||||
install:
|
||||
@echo "Installing chot to $(BINDIR)"
|
||||
install -d $(BINDIR)
|
||||
install -m 755 $(chot) $(BINDIR)/chot
|
||||
@echo "Installing fish completion to $(FISH_COMPDIR)"
|
||||
install -d $(FISH_COMPDIR)
|
||||
install -m 644 $(fish_completion) $(FISH_COMPDIR)/chot.fish
|
||||
|
||||
uninstall:
|
||||
rm -f $(BINDIR)/chot
|
||||
rm -f $(FISH_COMPDIR)/chot.fish
|
||||
|
||||
.PHONY: install uninstall
|
Reference in New Issue
Block a user