-# Default FLAGS, (can be overridden by user such as "make CFLAGS=-O2")
-WARN_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings -Wswitch-enum
-CFLAGS=-O2
-
-# Additional flags that we will append to whatever the user set.
-# These aren't intended for the user to manipulate.
-extra_cflags := $(shell pkg-config --cflags glib-2.0 gmime-2.4 talloc)
-extra_cxxflags := $(shell xapian-config --cxxflags)
-
-emacs_lispdir := $(shell pkg-config emacs --variable sitepkglispdir)
-# Hard-code if this system doesn't have an emacs.pc file
-ifeq ($(emacs_lispdir),)
- emacs_lispdir = $(prefix)/share/emacs/site-lisp
-endif
-
-all_deps = Makefile Makefile.local Makefile.config \
- lib/Makefile lib/Makefile.local
+# We want the all target to be the implicit target (if no target is
+# given explicitly on the command line) so mention it first.
+all: