2016-05-24 07:58:33 -05:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
BINDIR ?= $(DESTDIR)$(PREFIX)/bin
|
|
|
|
MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1
|
|
|
|
DOCDIR ?= $(DESTDIR)$(PREFIX)/share/doc/buku
|
|
|
|
BASHCOMPDIR = $(DESTDIR)$(PREFIX)/etc/bash_completion.d
|
|
|
|
FISHCOMPDIR = $(DESTDIR)$(PREFIX)/share/fish/vendor_completions.d
|
|
|
|
ZSHCOMPDIR = $(DESTDIR)$(PREFIX)/share/zsh/site-functions
|
2015-11-08 13:31:07 -06:00
|
|
|
|
2016-05-24 07:58:33 -05:00
|
|
|
.PHONY: all install install.comp uninstall uninstall.comp
|
2015-11-08 13:31:07 -06:00
|
|
|
|
2016-05-24 07:58:33 -05:00
|
|
|
all:
|
2015-11-08 13:31:07 -06:00
|
|
|
|
|
|
|
install:
|
2016-05-24 07:58:33 -05:00
|
|
|
install -m755 -d $(BINDIR)
|
|
|
|
install -m755 -d $(MANDIR)
|
|
|
|
install -m755 -d $(DOCDIR)
|
2015-12-19 14:16:24 -06:00
|
|
|
gzip -c buku.1 > buku.1.gz
|
2016-05-24 07:58:33 -05:00
|
|
|
install -m755 buku $(BINDIR)
|
|
|
|
install -m644 buku.1.gz $(MANDIR)
|
|
|
|
install -m644 README.md $(DOCDIR)
|
2015-12-19 14:16:24 -06:00
|
|
|
rm -f buku.1.gz
|
2015-11-08 13:31:07 -06:00
|
|
|
|
2016-05-24 07:58:33 -05:00
|
|
|
install.comp:
|
|
|
|
install -m755 -d $(BASHCOMPDIR) $(FISHCOMPDIR) $(ZSHCOMPDIR)
|
|
|
|
install -m644 auto-completion/bash/buku-completion.bash $(BASHCOMPDIR)
|
|
|
|
install -m644 auto-completion/fish/buku.fish $(FISHCOMPDIR)
|
|
|
|
install -m644 auto-completion/zsh/_buku $(ZSHCOMPDIR)
|
|
|
|
|
2015-11-08 13:31:07 -06:00
|
|
|
uninstall:
|
2016-05-24 07:58:33 -05:00
|
|
|
rm -f $(BINDIR)/buku
|
|
|
|
rm -f $(MANDIR)/buku.1.gz
|
|
|
|
rm -rf $(DOCDIR)
|
|
|
|
|
|
|
|
uninstall.comp:
|
|
|
|
rm -f $(BASHCOMPDIR)/buku-completion.bash $(FISHCOMPDIR)/buku.fish $(ZSHCOMPDIR)/_buku
|