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