]> git.notmuchmail.org Git - notmuch/blob - Makefile.local
c44d160378ea7f89f7f98f8dfff941aa825a00b9
[notmuch] / Makefile.local
1 all: notmuch notmuch.1.gz
2
3 notmuch_client_srcs =           \
4         notmuch.c               \
5         notmuch-config.c        \
6         notmuch-dump.c          \
7         notmuch-new.c           \
8         notmuch-reply.c         \
9         notmuch-restore.c       \
10         notmuch-search.c        \
11         notmuch-setup.c         \
12         notmuch-show.c          \
13         notmuch-tag.c           \
14         notmuch-time.c          \
15         gmime-filter-reply.c    \
16         query-string.c          \
17         show-message.c
18
19 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
20 notmuch: $(notmuch_client_modules) lib/notmuch.a
21         $(CXX) $^ $(LDFLAGS) -o $@
22
23 notmuch.1.gz: notmuch.1
24         gzip --stdout notmuch.1 > notmuch.1.gz
25
26 install: all notmuch.1.gz
27         for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \
28                 $(DESTDIR)/$(prefix)/share/emacs/site-lisp/ $(DESTDIR)/etc/bash_completion.d/ ; \
29         do \
30                 install -d $$d ; \
31         done ;
32         install notmuch $(DESTDIR)$(prefix)/bin/
33         install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
34         install -m0644 notmuch.el $(DESTDIR)$(prefix)/share/emacs/site-lisp/
35         install notmuch-completion.bash \
36                 $(DESTDIR)/etc/bash_completion.d/notmuch
37
38 SRCS  := $(SRCS) $(notmuch_client_srcs)
39 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules)