From: Carl Worth Date: Tue, 5 Jan 2010 23:05:57 +0000 (-0800) Subject: Makefiles: Use .DEFAULT to support arbitrary targets from sub directories. X-Git-Tag: 0.1~182 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=341d49b0610fcf725da618d87fda577a3d512343;hp=3f32fd8a1c06d417bdcb467bac2805f658cb5476 Makefiles: Use .DEFAULT to support arbitrary targets from sub directories. Taking advantage of the .DEFAULT construct means that we won't need to explicitly list targets such as "clean", etc. in each sub-Makefile. --- diff --git a/compat/Makefile b/compat/Makefile index 9a29ffcf..fa25832e 100644 --- a/compat/Makefile +++ b/compat/Makefile @@ -1,5 +1,5 @@ all: $(MAKE) -C .. all -clean: - $(MAKE) -C .. clean +.DEFAULT: + $(MAKE) -C .. $@ diff --git a/lib/Makefile b/lib/Makefile index 9a29ffcf..b6859eac 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,5 +1,7 @@ +# See Makfefile.local for the list of files to be compiled in this +# directory. all: $(MAKE) -C .. all -clean: - $(MAKE) -C .. clean +.DEFAULT: + $(MAKE) -C .. $@