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.
5 # List all subdirectories here. Each contains its own Makefile.local
6 subdirs = compat completion emacs lib test
8 # We make all targets depend on the Makefiles themselves.
9 global_deps = Makefile Makefile.config Makefile.local \
10 $(subdirs:%=%/Makefile) $(subdirs:%=%/Makefile.local)
12 # Sub-directory Makefile.local fragments can append to these variables
13 # to have directory-specific cflags as necessary.
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: $(srcdir)/configure
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."
31 # Finally, include all of the Makefile.local fragments where all the
34 include $(subdirs:%=%/Makefile.local) Makefile.local