2009-11-18 06:04:31 +01:00
|
|
|
all: notmuch notmuch.1.gz
|
2009-11-10 16:14:49 +01:00
|
|
|
|
2009-11-19 22:20:01 +01:00
|
|
|
emacs: notmuch.elc
|
|
|
|
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch_client_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-11-21 21:32:20 +01:00
|
|
|
$(call quiet,CXX) $^ $(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
|
|
|
|
|
|
|
install: all notmuch.1.gz
|
2009-11-17 22:05:16 +01:00
|
|
|
for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \
|
2009-11-20 16:28:26 +01:00
|
|
|
$(DESTDIR)$(bash_completion_dir) ; \
|
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-20 14:36:14 +01:00
|
|
|
install contrib/notmuch-completion.bash \
|
2009-11-20 16:28:26 +01:00
|
|
|
$(DESTDIR)$(bash_completion_dir)/notmuch
|
2009-11-10 16:14:49 +01:00
|
|
|
|
2009-11-19 22:20:01 +01:00
|
|
|
install-emacs: install emacs
|
|
|
|
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-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
|