]> git.notmuchmail.org Git - notmuch/blob - Makefile.local
b049e5bf994182201c17b7f247e07df6c59ca740
[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         add-files.c             \
16         gmime-filter-reply.c    \
17         query-string.c          \
18         show-message.c
19
20 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
21 notmuch: $(notmuch_client_modules) lib/notmuch.a
22         $(CC) $(LDFLAGS) $^ -o $@
23
24 notmuch.1.gz:
25         gzip --stdout notmuch.1 > notmuch.1.gz
26
27 install: all notmuch.1.gz
28         install -C -D notmuch $(DESTDIR)/usr/bin/notmuch
29         install -C -D notmuch.1.gz $(DESTDIR)/usr/share/man/man1
30         install -C -D notmuch-completion.bash \
31                 $(DESTDIR)/etc/bash_completion.d/notmuch
32
33 SRCS  := $(SRCS) $(notmuch_client_srcs)
34 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules)