3 notmuch_client_srcs = \
4 $(notmuch_compat_srcs) \
15 notmuch-search-tags.c \
23 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
24 notmuch: $(notmuch_client_modules) lib/notmuch.a
25 $(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -o $@
27 notmuch.1.gz: notmuch.1
28 $(call quiet,gzip) --stdout $^ > $@
30 install: all notmuch.1.gz
31 for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 ; \
35 install notmuch $(DESTDIR)$(prefix)/bin/
36 install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
38 install-emacs: install emacs
39 for d in $(DESTDIR)/$(emacs_lispdir) ; \
43 install -m0644 notmuch.el $(DESTDIR)$(emacs_lispdir)
44 install -m0644 notmuch.elc $(DESTDIR)$(emacs_lispdir)
47 install -d $(DESTDIR)$(desktop_dir)
48 desktop-file-install --mode 0644 --dir $(DESTDIR)$(desktop_dir) notmuch.desktop
51 install -d $(DESTDIR)$(bash_completion_dir)
52 install -m0644 contrib/notmuch-completion.bash \
53 $(DESTDIR)$(bash_completion_dir)/notmuch
56 install -d $(DESTDIR)$(zsh_completion_dir)
57 install -m0644 contrib/notmuch-completion.zsh \
58 $(DESTDIR)$(zsh_completion_dir)/notmuch
60 SRCS := $(SRCS) $(notmuch_client_srcs)
61 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz