It's unconditional for a very short time. We expect to soon be
building it only if necessary.
$(shell pkg-config --libs glib-2.0 gmime-2.4 talloc) \
$(shell xapian-config --libs)
-# Include our local Makefile.local first so that its first target is default
-include Makefile.local
+all: notmuch notmuch.1.gz
+
include lib/Makefile.local
+include compat/Makefile.local
+include Makefile.local
# And get user settings from the output of configure
Makefile.config: configure
-all: notmuch notmuch.1.gz
-
emacs: notmuch.elc
notmuch_client_srcs = \
+ $(notmuch_compat_srcs) \
debugger.c \
gmime-filter-reply.c \
notmuch.c \
-----------
Fix configure script to test each compiler warning we want to use.
-Implement getline locally, (look at gnulib).
-
Completion
----------
Fix bash completion to complete multiple search options (both --first
--- /dev/null
+all:
+ $(MAKE) -C .. all
+
+clean:
+ $(MAKE) -C .. clean
--- /dev/null
+dir=compat
+extra_cflags += -I$(dir)
+
+notmuch_compat_srcs =
+
+ifneq ($(HAVE_GETLINE),1)
+notmuch_compat_srcs += $(dir)/getline.c $(dir)/getdelim.c
+endif
#endif
#include <stdio.h>
+#include "compat.h"
+
#include "notmuch.h"
NOTMUCH_BEGIN_DECLS
#ifndef NOTMUCH_CLIENT_H
#define NOTMUCH_CLIENT_H
-
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for getline */
#endif
#include <stdio.h>
+#include "compat.h"
+
#include <gmime/gmime.h>
#include "notmuch.h"