- install -C notmuch $(DESTDIR)/usr/bin/notmuch
- install -C notmuch.1.gz $(DESTDIR)/usr/share/man/man1
- install -C notmuch-completion.bash \
- $(DESTDIR)/etc/bash_completion.d/notmuch
+ install notmuch $(DESTDIR)$(prefix)/bin/
+ install lib/$(SONAME) $(DESTDIR)$(prefix)/lib/
+ install lib/notmuch.h $(DESTDIR)$(prefix)/include/
+ ln -sf $(SONAME) $(DESTDIR)$(prefix)/lib/libnotmuch.so
+ install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
+ifeq ($(MAKECMDGOALS), install)
+ @echo ""
+ @echo "Notmuch is now installed."
+ @echo ""
+ @echo "You may now want to install additional components to support using notmuch"
+ @echo "together with other software packages:"
+ @echo ""
+ @echo " make install-emacs"
+ @echo " make install-bash"
+ @echo " make install-zsh"
+ @echo ""
+endif
+
+install-desktop:
+ install -d $(DESTDIR)$(desktop_dir)
+ desktop-file-install --mode 0644 --dir $(DESTDIR)$(desktop_dir) notmuch.desktop
+
+install-bash:
+ install -d $(DESTDIR)$(bash_completion_dir)
+ install -m0644 contrib/notmuch-completion.bash \
+ $(DESTDIR)$(bash_completion_dir)/notmuch
+
+install-zsh:
+ install -d $(DESTDIR)$(zsh_completion_dir)
+ install -m0644 contrib/notmuch-completion.zsh \
+ $(DESTDIR)$(zsh_completion_dir)/notmuch