notmuch: Break notmuch.c up into several smaller files.
[notmuch] / Makefile.local
1 all: notmuch
2
3 notmuch_client_srcs =           \
4         notmuch.c               \
5         notmuch-dump.c          \
6         notmuch-new.c           \
7         notmuch-restore.c       \
8         notmuch-search.c        \
9         notmuch-setup.c         \
10         notmuch-show.c          \
11         notmuch-tag.c           \
12         notmuch-time.c          \
13         add-files.c             \
14         query-string.c
15
16 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
17 notmuch: $(notmuch_client_modules) lib/notmuch.a
18         $(CC) $(LDFLAGS) $^ -o $@
19
20 notmuch.1.gz:
21         gzip --stdout notmuch.1 > notmuch.1.gz
22
23 install: all notmuch.1.gz
24         install -C -D notmuch $(DESTDIR)/usr/bin/notmuch
25         install -C -D notmuch.1.gz $(DESTDIR)/usr/share/man/man1
26         install -C -D notmuch-completion.bash \
27                 $(DESTDIR)/etc/bash_completion.d/notmuch
28
29 SRCS  := $(SRCS) $(notmuch_client_srcs)
30 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules)