]> git.notmuchmail.org Git - notmuch/blob - Makefile
fix line breaks in one comment paragraph in generated .notmuch-config file
[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 subdirs := compat completion emacs lib man parse-time-string
7 subdirs += performance-test util test
8
9 # We make all targets depend on the Makefiles themselves.
10 global_deps = Makefile Makefile.config Makefile.local \
11         $(subdirs:%=%/Makefile) $(subdirs:%=%/Makefile.local)
12
13 # Sub-directory Makefile.local fragments can append to these variables
14 # to have directory-specific cflags as necessary.
15
16 extra_cflags :=
17 extra_cxxflags :=
18
19 # Get settings from the output of configure by running it to generate
20 # Makefile.config if it doesn't exist yet.
21
22 # If Makefile.config doesn't exist, then srcdir won't be
23 # set. Conditionally set it (assuming a plain srcdir build) so that
24 # the rule to generate Makefile.config can actually work.
25 srcdir ?= .
26
27 include Makefile.config
28 Makefile.config: $(srcdir)/configure
29 ifeq ($(configure_options),)
30         @echo ""
31         @echo "Note: Calling ./configure with no command-line arguments. This is often fine,"
32         @echo "      but if you want to specify any arguments (such as an alternate prefix"
33         @echo "      into which to install), call ./configure explicitly and then make again."
34         @echo "      See \"./configure --help\" for more details."
35         @echo ""
36 endif
37         $(srcdir)/configure $(configure_options)
38
39 # Finally, include all of the Makefile.local fragments where all the
40 # real work is done.
41
42 include $(subdirs:%=%/Makefile.local) Makefile.local