]> git.notmuchmail.org Git - notmuch/blob - Makefile
emacs: Combine notmuch-combine-face-text-property{, -string}
[notmuch] / Makefile
1 # We want the all target to be the implicit target (if no target is
2 # given explicitly on the command line) so mention it first.
3 all:
4
5 # List all subdirectories here. Each contains its own Makefile.local.
6 # Use of '=', without '+=', seems to be required for out-of-tree
7 # builds to work.
8 subdirs = compat completion doc emacs lib parse-time-string     \
9         performance-test util test test/test-databases
10
11 # We make all targets depend on the Makefiles themselves.
12 global_deps = Makefile Makefile.config Makefile.local \
13         $(subdirs:%=%/Makefile) $(subdirs:%=%/Makefile.local)
14
15 # Sub-directory Makefile.local fragments can append to these variables
16 # to have directory-specific cflags as necessary.
17
18 extra_cflags :=
19 extra_cxxflags :=
20
21 # Get settings from the output of configure by running it to generate
22 # Makefile.config if it doesn't exist yet.
23
24 # If Makefile.config doesn't exist, then srcdir won't be
25 # set. Conditionally set it (assuming a plain srcdir build) so that
26 # the rule to generate Makefile.config can actually work.
27 srcdir ?= .
28
29 include Makefile.config
30 Makefile.config: $(srcdir)/configure
31 ifeq ($(configure_options),)
32         @echo ""
33         @echo "Note: Calling ./configure with no command-line arguments. This is often fine,"
34         @echo "      but if you want to specify any arguments (such as an alternate prefix"
35         @echo "      into which to install), call ./configure explicitly and then make again."
36         @echo "      See \"./configure --help\" for more details."
37         @echo ""
38 endif
39         $(srcdir)/configure $(configure_options)
40
41 # Finally, include all of the Makefile.local fragments where all the
42 # real work is done.
43
44 include $(subdirs:%=%/Makefile.local) Makefile.local