lib: Move notmuch_messages_t code from query.cc to new messages.c
[notmuch] / Makefile.local
1 all: notmuch
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         $(CC) $(LDFLAGS) $^ -o $@
22
23 notmuch.1.gz:
24         gzip --stdout notmuch.1 > notmuch.1.gz
25
26 install: all notmuch.1.gz
27         install -C -D notmuch $(DESTDIR)/usr/bin/notmuch
28         install -C -D notmuch.1.gz $(DESTDIR)/usr/share/man/man1
29         install -C -D notmuch-completion.bash \
30                 $(DESTDIR)/etc/bash_completion.d/notmuch
31
32 SRCS  := $(SRCS) $(notmuch_client_srcs)
33 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules)