2009-11-10 16:14:49 +01:00
|
|
|
all: notmuch
|
|
|
|
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch_client_srcs = \
|
|
|
|
notmuch.c \
|
|
|
|
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 \
|
|
|
|
add-files.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-10 17:27:48 +01:00
|
|
|
$(CC) $(LDFLAGS) $^ -o $@
|
2009-11-10 16:14:49 +01:00
|
|
|
|
|
|
|
notmuch.1.gz:
|
|
|
|
gzip --stdout notmuch.1 > notmuch.1.gz
|
|
|
|
|
|
|
|
install: all notmuch.1.gz
|
|
|
|
install -C -D notmuch $(DESTDIR)/usr/bin/notmuch
|
|
|
|
install -C -D notmuch.1.gz $(DESTDIR)/usr/share/man/man1
|
|
|
|
install -C -D notmuch-completion.bash \
|
|
|
|
$(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)
|