]> git.notmuchmail.org Git - notmuch/blob - Makefile.local
af1c9b5c55a55c4034994fc0df6075b665cac182
[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
23 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
24 notmuch: $(notmuch_client_modules) lib/notmuch.a
25         $(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -o $@
26
27 notmuch.1.gz: notmuch.1
28         $(call quiet,gzip) --stdout $^ > $@
29
30 install: all notmuch.1.gz
31         for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 ; \
32         do \
33                 install -d $$d ; \
34         done ;
35         install notmuch $(DESTDIR)$(prefix)/bin/
36         install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
37
38 install-emacs: install emacs
39         for d in $(DESTDIR)/$(emacs_lispdir) ; \
40         do \
41                 install -d $$d ; \
42         done ;
43         install -m0644 notmuch.el $(DESTDIR)$(emacs_lispdir)
44         install -m0644 notmuch.elc $(DESTDIR)$(emacs_lispdir)
45
46 install-bash:
47         install -d $(DESTDIR)$(bash_completion_dir)
48         install contrib/notmuch-completion.bash \
49                 $(DESTDIR)$(bash_completion_dir)/notmuch
50
51 SRCS  := $(SRCS) $(notmuch_client_srcs)
52 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz