1 all: notmuch notmuch.1.gz
5 notmuch_client_srcs = \
22 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
23 notmuch: $(notmuch_client_modules) lib/notmuch.a
24 $(call quiet,CXX) $^ $(LDFLAGS) -o $@
26 notmuch.1.gz: notmuch.1
27 $(call quiet,gzip) --stdout $^ > $@
29 install: all notmuch.1.gz
30 for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \
31 $(DESTDIR)$(bash_completion_dir) ; \
35 install notmuch $(DESTDIR)$(prefix)/bin/
36 install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
37 install contrib/notmuch-completion.bash \
38 $(DESTDIR)$(bash_completion_dir)/notmuch
40 install-emacs: install emacs
41 for d in $(DESTDIR)/$(emacs_lispdir) ; \
45 install -m0644 notmuch.el $(DESTDIR)$(emacs_lispdir)
46 install -m0644 notmuch.elc $(DESTDIR)$(emacs_lispdir)
48 SRCS := $(SRCS) $(notmuch_client_srcs)
49 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz