2016-05-24 18:28:33 +05:30
|
|
|
PREFIX ?= /usr/local
|
|
|
|
BINDIR ?= $(DESTDIR)$(PREFIX)/bin
|
|
|
|
MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1
|
|
|
|
DOCDIR ?= $(DESTDIR)$(PREFIX)/share/doc/buku
|
2016-05-25 01:50:12 +05:30
|
|
|
|
2016-05-25 09:55:00 +05:30
|
|
|
.PHONY: all install uninstall
|
2015-11-09 01:01:07 +05:30
|
|
|
|
2016-05-24 18:28:33 +05:30
|
|
|
all:
|
2015-11-09 01:01:07 +05:30
|
|
|
|
|
|
|
install:
|
2016-05-24 18:28:33 +05:30
|
|
|
install -m755 -d $(BINDIR)
|
|
|
|
install -m755 -d $(MANDIR)
|
|
|
|
install -m755 -d $(DOCDIR)
|
2015-12-20 01:46:24 +05:30
|
|
|
gzip -c buku.1 > buku.1.gz
|
2016-11-06 19:44:44 +01:00
|
|
|
install -m755 buku.py $(BINDIR)/buku
|
2016-05-24 18:28:33 +05:30
|
|
|
install -m644 buku.1.gz $(MANDIR)
|
|
|
|
install -m644 README.md $(DOCDIR)
|
2015-12-20 01:46:24 +05:30
|
|
|
rm -f buku.1.gz
|
2015-11-09 01:01:07 +05:30
|
|
|
|
|
|
|
uninstall:
|
2016-05-24 18:28:33 +05:30
|
|
|
rm -f $(BINDIR)/buku
|
|
|
|
rm -f $(MANDIR)/buku.1.gz
|
|
|
|
rm -rf $(DOCDIR)
|