1 all: notmuch notmuch.1.gz
5 notmuch_client_srcs = \
17 gmime-filter-reply.c \
21 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
22 notmuch: $(notmuch_client_modules) lib/notmuch.a
23 $(CXX) $^ $(LDFLAGS) -o $@
25 notmuch.1.gz: notmuch.1
26 gzip --stdout notmuch.1 > notmuch.1.gz
28 install: all notmuch.1.gz
29 for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \
30 $(DESTDIR)/etc/bash_completion.d/ ; \
34 install notmuch $(DESTDIR)$(prefix)/bin/
35 install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
36 install contrib/notmuch-completion.bash \
37 $(DESTDIR)/etc/bash_completion.d/notmuch
39 install-emacs: install emacs
40 for d in $(DESTDIR)/$(emacs_lispdir) ; \
44 install -m0644 notmuch.el $(DESTDIR)$(emacs_lispdir)
45 install -m0644 notmuch.elc $(DESTDIR)$(emacs_lispdir)
47 SRCS := $(SRCS) $(notmuch_client_srcs)
48 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz