2009-11-18 06:04:31 +01:00
|
|
|
all: notmuch notmuch.1.gz
|
2009-11-10 16:14:49 +01:00
|
|
|
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch_client_srcs = \
|
|
|
|
notmuch.c \
|
2009-11-12 02:01:55 +01:00
|
|
|
notmuch-config.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 \
|
|
|
|
notmuch-setup.c \
|
|
|
|
notmuch-show.c \
|
|
|
|
notmuch-tag.c \
|
|
|
|
notmuch-time.c \
|
2009-11-06 19:00:38 +01:00
|
|
|
gmime-filter-reply.c \
|
|
|
|
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-18 02:05:53 +01:00
|
|
|
$(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-10 16:14:49 +01:00
|
|
|
gzip --stdout notmuch.1 > notmuch.1.gz
|
|
|
|
|
|
|
|
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-19 02:45:44 +01:00
|
|
|
$(DESTDIR)/$(prefix)/share/emacs/site-lisp/ $(DESTDIR)/etc/bash_completion.d/ ; \
|
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-19 00:27:34 +01:00
|
|
|
install -m0644 notmuch.el $(DESTDIR)$(prefix)/share/emacs/site-lisp/
|
2009-11-17 23:18:47 +01:00
|
|
|
install notmuch-completion.bash \
|
2009-11-10 16:14:49 +01:00
|
|
|
$(DESTDIR)/etc/bash_completion.d/notmuch
|
|
|
|
|
2009-11-10 21:03:05 +01:00
|
|
|
SRCS := $(SRCS) $(notmuch_client_srcs)
|
|
|
|
CLEAN := $(CLEAN) notmuch $(notmuch_client_modules)
|