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