]> git.notmuchmail.org Git - notmuch/blob - Makefile.local
emacs: Unbreak notmuch-show-rewind (the function to which Backspace is bound)
[notmuch] / Makefile.local
1 emacs: notmuch.elc
2
3 notmuch_client_srcs =           \
4         $(notmuch_compat_srcs)  \
5         debugger.c              \
6         gmime-filter-reply.c    \
7         notmuch.c               \
8         notmuch-config.c        \
9         notmuch-count.c         \
10         notmuch-dump.c          \
11         notmuch-new.c           \
12         notmuch-reply.c         \
13         notmuch-restore.c       \
14         notmuch-search.c        \
15         notmuch-search-tags.c   \
16         notmuch-setup.c         \
17         notmuch-show.c          \
18         notmuch-tag.c           \
19         notmuch-time.c          \
20         query-string.c          \
21         show-message.c          \
22         json.c
23
24 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
25 notmuch: $(notmuch_client_modules) lib/notmuch.a
26         $(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_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         do \
34                 install -d $$d ; \
35         done ;
36         install notmuch $(DESTDIR)$(prefix)/bin/
37         install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
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 install-desktop:
48         install -d $(DESTDIR)$(desktop_dir)
49         desktop-file-install --mode 0644 --dir $(DESTDIR)$(desktop_dir) notmuch.desktop
50
51 install-bash:
52         install -d $(DESTDIR)$(bash_completion_dir)
53         install -m0644 contrib/notmuch-completion.bash \
54                 $(DESTDIR)$(bash_completion_dir)/notmuch
55
56 install-zsh:
57         install -d $(DESTDIR)$(zsh_completion_dir)
58         install -m0644 contrib/notmuch-completion.zsh \
59                 $(DESTDIR)$(zsh_completion_dir)/notmuch
60
61 SRCS  := $(SRCS) $(notmuch_client_srcs)
62 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz