]> git.notmuchmail.org Git - notmuch/blob - Makefile
notmuch search: Add a new --output=(summary|threads|messages|tags) option.
[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 test
7
8 # We make all targets depend on the Makefiles themselves.
9 global_deps = Makefile Makefile.config Makefile.local \
10         $(subdirs:%=%/Makefile) $(subdirs:%=%/Makefile.local)
11
12 # Sub-directory Makefile.local fragments can append to these variables
13 # to have directory-specific cflags as necessary.
14
15 extra_cflags :=
16 extra_cxxflags :=
17
18 # Get settings from the output of configure by running it to generate
19 # Makefile.config if it doesn't exist yet. And add Makefile.config to
20 # our global dependency list.
21 include Makefile.config
22 Makefile.config: configure
23         @echo ""
24         @echo "Note: Calling ./configure with no command-line arguments. This is often fine,"
25         @echo "      but if you want to specify any arguments (such as an alternate prefix"
26         @echo "      into which to install), call ./configure explicitly and then make again."
27         @echo "      See \"./configure --help\" for more details."
28         @echo ""
29         ./configure
30
31 # Finally, include all of the Makefile.local fragments where all the
32 # real work is done.
33
34 include $(subdirs:%=%/Makefile.local) Makefile.local