2009-11-19 22:20:01 +01:00
|
|
|
emacs: notmuch.elc
|
|
|
|
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch_client_srcs = \
|
2009-12-02 00:23:25 +01:00
|
|
|
$(notmuch_compat_srcs) \
|
2009-11-22 01:44:31 +01:00
|
|
|
debugger.c \
|
|
|
|
gmime-filter-reply.c \
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch.c \
|
2009-11-12 02:01:55 +01:00
|
|
|
notmuch-config.c \
|
2009-11-21 08:15:07 +01:00
|
|
|
notmuch-count.c \
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch-dump.c \
|
|
|
|
notmuch-new.c \
|
2009-11-06 19:00:38 +01:00
|
|
|
notmuch-reply.c \
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch-restore.c \
|
|
|
|
notmuch-search.c \
|
2009-11-23 01:10:55 +01:00
|
|
|
notmuch-search-tags.c \
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch-setup.c \
|
|
|
|
notmuch-show.c \
|
|
|
|
notmuch-tag.c \
|
|
|
|
notmuch-time.c \
|
2009-11-06 19:00:38 +01:00
|
|
|
query-string.c \
|
|
|
|
show-message.c
|
2009-11-10 21:03:05 +01:00
|
|
|
|
|
|
|
notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
|
|
|
|
notmuch: $(notmuch_client_modules) lib/notmuch.a
|
2009-12-05 00:08:37 +01:00
|
|
|
$(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -o $@
|
2009-11-10 16:14:49 +01:00
|
|
|
|
2009-11-18 06:04:31 +01:00
|
|
|
notmuch.1.gz: notmuch.1
|
2009-11-22 04:45:16 +01:00
|
|
|
$(call quiet,gzip) --stdout $^ > $@
|
2009-11-10 16:14:49 +01:00
|
|
|
|
2009-12-24 03:15:55 +01:00
|
|
|
install: all notmuch.1.gz install-emacs install-bash
|
2009-12-01 19:14:00 +01:00
|
|
|
for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 ; \
|
2009-11-17 20:50:29 +01:00
|
|
|
do \
|
2009-11-17 23:18:47 +01:00
|
|
|
install -d $$d ; \
|
2009-11-17 20:50:29 +01:00
|
|
|
done ;
|
2009-11-17 23:18:47 +01:00
|
|
|
install notmuch $(DESTDIR)$(prefix)/bin/
|
|
|
|
install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
|
2009-11-10 16:14:49 +01:00
|
|
|
|
2009-12-24 03:15:55 +01:00
|
|
|
install-emacs: emacs
|
2009-11-19 22:20:01 +01:00
|
|
|
for d in $(DESTDIR)/$(emacs_lispdir) ; \
|
|
|
|
do \
|
|
|
|
install -d $$d ; \
|
|
|
|
done ;
|
|
|
|
install -m0644 notmuch.el $(DESTDIR)$(emacs_lispdir)
|
|
|
|
install -m0644 notmuch.elc $(DESTDIR)$(emacs_lispdir)
|
|
|
|
|
2009-12-01 19:14:00 +01:00
|
|
|
install-bash:
|
|
|
|
install -d $(DESTDIR)$(bash_completion_dir)
|
2009-11-29 00:57:37 +01:00
|
|
|
install -m0644 contrib/notmuch-completion.bash \
|
2009-12-01 19:14:00 +01:00
|
|
|
$(DESTDIR)$(bash_completion_dir)/notmuch
|
|
|
|
|
2009-11-10 21:03:05 +01:00
|
|
|
SRCS := $(SRCS) $(notmuch_client_srcs)
|
2009-11-20 13:58:39 +01:00
|
|
|
CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz
|