2010-04-01 07:12:01 +02:00
|
|
|
# We want the all target to be the implicit target (if no target is
|
|
|
|
# given explicitly on the command line) so mention it first.
|
|
|
|
all:
|
2009-12-01 17:34:09 +01:00
|
|
|
|
2010-04-01 07:12:01 +02:00
|
|
|
# List all subdirectories here. Each contains its own Makefile.local
|
2010-04-06 20:02:09 +02:00
|
|
|
subdirs = compat completion emacs lib
|
2010-03-10 19:59:57 +01:00
|
|
|
|
2010-04-01 07:12:01 +02:00
|
|
|
# We make all targets depend on the Makefiles themselves.
|
|
|
|
global_deps = Makefile Makefile.local \
|
2010-03-10 19:59:57 +01:00
|
|
|
$(subdirs:%=%/Makefile) $(subdirs:%=%/Makefile.local)
|
2009-11-17 22:05:16 +01:00
|
|
|
|
2010-04-12 01:44:52 +02:00
|
|
|
# Sub-directory Makefile.local fragments can append to these variables
|
|
|
|
# to have directory-specific cflags as necessary.
|
|
|
|
|
|
|
|
extra_cflags :=
|
|
|
|
extra_cxxflags :=
|
|
|
|
|
2010-04-01 07:12:01 +02:00
|
|
|
# Finally, include all of the Makefile.local fragments where all the
|
|
|
|
# real work is done.
|
2010-04-12 01:44:52 +02:00
|
|
|
|
|
|
|
include $(subdirs:%=%/Makefile.local) Makefile.local
|