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 = \
|
|
|
|
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-19 09:13:35 +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-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
|