]> git.notmuchmail.org Git - notmuch/commitdiff
Makefiles: Use .DEFAULT to support arbitrary targets from sub directories.
authorCarl Worth <cworth@cworth.org>
Tue, 5 Jan 2010 23:05:57 +0000 (15:05 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:06 +0000 (10:32 -0800)
Taking advantage of the .DEFAULT construct means that we won't need to
explicitly list targets such as "clean", etc. in each sub-Makefile.

compat/Makefile
lib/Makefile

index 9a29ffcfdd3427ced79a2cb0d003d1e0f97cc235..fa25832e0b97a280e5f4fe08d024ddfc2a4dd97d 100644 (file)
@@ -1,5 +1,5 @@
 all:
        $(MAKE) -C .. all
 
-clean:
-       $(MAKE) -C .. clean
+.DEFAULT:
+       $(MAKE) -C .. $@
index 9a29ffcfdd3427ced79a2cb0d003d1e0f97cc235..b6859eacc7f87c70cae3f2bb320e48158d146af3 100644 (file)
@@ -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 .. $@