aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.local
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.local b/Makefile.local
new file mode 100644
index 00000000..5474efc6
--- /dev/null
+++ b/Makefile.local
@@ -0,0 +1,16 @@
+all: notmuch
+
+notmuch: notmuch.o lib/notmuch.a
+ $(CC) $(NOTMUCH_LDFLAGS) $^ -o $@
+
+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
+
+SRCS := $(SRCS) notmuch.c
+CLEAN := $(CLEAN) notmuch *.o