]> git.notmuchmail.org Git - notmuch/blob - Makefile.local
b6d3db3cd8f19f0f4ffe382d123222c2145318a2
[notmuch] / Makefile.local
1 all: notmuch notmuch.1.gz
2
3 emacs: notmuch.elc
4
5 notmuch_client_srcs =           \
6         notmuch.c               \
7         notmuch-config.c        \
8         notmuch-dump.c          \
9         notmuch-new.c           \
10         notmuch-reply.c         \
11         notmuch-restore.c       \
12         notmuch-search.c        \
13         notmuch-setup.c         \
14         notmuch-show.c          \
15         notmuch-tag.c           \
16         notmuch-time.c          \
17         gmime-filter-reply.c    \
18         query-string.c          \
19         show-message.c
20
21 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
22 notmuch: $(notmuch_client_modules) lib/notmuch.a
23         $(call quiet,CXX) $^ $(LDFLAGS) -o $@
24
25 notmuch.1.gz: notmuch.1
26         $(call quiet,gzip) --stdout $^ > $@
27
28 install: all notmuch.1.gz
29         for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \
30                 $(DESTDIR)$(bash_completion_dir) ; \
31         do \
32                 install -d $$d ; \
33         done ;
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)$(bash_completion_dir)/notmuch
38
39 install-emacs: install emacs
40         for d in $(DESTDIR)/$(emacs_lispdir) ; \
41         do \
42                 install -d $$d ; \
43         done ;
44         install -m0644 notmuch.el $(DESTDIR)$(emacs_lispdir)
45         install -m0644 notmuch.elc $(DESTDIR)$(emacs_lispdir)
46
47 SRCS  := $(SRCS) $(notmuch_client_srcs)
48 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz