2016-04-07 16:19:36 -05:00
|
|
|
PREFIX?= /usr/local
|
|
|
|
BINDIR?= $(PREFIX)/bin
|
|
|
|
MANDIR?= $(PREFIX)/share/man/man1
|
|
|
|
DOCDIR?= $(PREFIX)/share/doc/buku
|
2015-11-08 13:31:07 -06:00
|
|
|
|
|
|
|
|
|
|
|
.PHONY: install uninstall
|
|
|
|
|
|
|
|
install:
|
2016-04-07 16:19:36 -05:00
|
|
|
install -m755 -d $(DESTDIR)$(BINDIR)
|
|
|
|
install -m755 -d $(DESTDIR)$(MANDIR)
|
|
|
|
install -m755 -d $(DESTDIR)$(DOCDIR)
|
2015-12-19 14:16:24 -06:00
|
|
|
gzip -c buku.1 > buku.1.gz
|
2016-04-07 16:19:36 -05:00
|
|
|
install -m755 buku $(DESTDIR)$(BINDIR)
|
|
|
|
install -m644 buku.1.gz $(DESTDIR)$(MANDIR)
|
|
|
|
install -m644 README.md $(DESTDIR)$(DOCDIR)
|
2015-12-19 14:16:24 -06:00
|
|
|
rm -f buku.1.gz
|
2015-11-08 13:31:07 -06:00
|
|
|
|
|
|
|
uninstall:
|
2016-04-07 16:19:36 -05:00
|
|
|
rm -f $(DESTDIR)$(BINDIR)/buku
|
|
|
|
rm -f $(DESTDIR)$(MANDIR)/buku.1.gz
|
|
|
|
rm -rf $(DESTDIR)$(DOCDIR)
|