]> git.notmuchmail.org Git - notmuch/blobdiff - Makefile
Add a simple manual page for notmuch.
[notmuch] / Makefile
index a1a7a15ce523eaa9e82f586a146ec589bab69cca..fee4ffffc0ee6a579290832a24e168b91fa81fd7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -41,5 +41,13 @@ Makefile.dep: *.c *.cc
        $(CXX) -M $(CPPFLAGS) $(CDEPENDS_FLAGS) $(CXXDEPENDS_FLAGS) $^ > $@
 -include Makefile.dep
 
+notmuch.1.gz:
+       gzip --stdout notmuch.1 > notmuch.1.gz
+
+install: notmuch.1.gz
+       install -C -D notmuch $(DESTDIR)/usr/bin/notmuch
+       install -C -D notmuch.1.gz $(DESTDIR)/usr/share/man/man1
+       install -C -D notmuch-completion.bash $(DESTDIR)/etc/bash_completion.d/notmuch
+
 clean:
        rm -f $(PROGS) *.o Makefile.dep