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