mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
784e55d0f9
Before it was impossible to know whether any particular setting or rule definition was in Makefile or Makefile.local. So we strip the Makefile down to little more than the list of sub-directories and the logic to include all of the sub-directories' Makefile.local fragments. Then, all of the real work can happen inside of Makefile.local.
14 lines
529 B
Makefile
14 lines
529 B
Makefile
# 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:
|
|
|
|
# List all subdirectories here. Each contains its own Makefile.local
|
|
subdirs = compat emacs lib
|
|
|
|
# We make all targets depend on the Makefiles themselves.
|
|
global_deps = Makefile Makefile.local \
|
|
$(subdirs:%=%/Makefile) $(subdirs:%=%/Makefile.local)
|
|
|
|
# Finally, include all of the Makefile.local fragments where all the
|
|
# real work is done.
|
|
include Makefile.local $(subdirs:%=%/Makefile.local)
|