4 # List all subdirectores here. Each contains its own Makefile.local
7 # We make all targets depend on the Makefiles themselves.
8 global_deps = Makefile Makefile.config Makefile.local \
9 $(subdirs:%=%/Makefile) $(subdirs:%=%/Makefile.local)
11 # Get settings from the output of configure by running it to generate
12 # Makefile.config if it doesn't exist yet.
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.
19 include Makefile.config
20 Makefile.config: $(srcdir)/configure
21 ifeq ($(configure_options),)
23 @echo "Note: Calling ./configure with no command-line arguments. This is often fine,"
24 @echo " but if you want to specify any arguments (such as an alternate prefix"
25 @echo " into which to install), call ./configure explicitly and then make again."
26 @echo " See \"./configure --help\" for more details."
29 $(srcdir)/configure $(configure_options)
31 # Finally, include all of the Makefile.local fragments where all the
34 include $(subdirs:%=%/Makefile.local) Makefile.local