projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f32fd8
)
Makefiles: Use .DEFAULT to support arbitrary targets from sub directories.
author
Carl Worth
<cworth@cworth.org>
Tue, 5 Jan 2010 23:05:57 +0000
(15:05 -0800)
committer
Carl 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
patch
|
blob
|
history
lib/Makefile
patch
|
blob
|
history
diff --git
a/compat/Makefile
b/compat/Makefile
index 9a29ffcfdd3427ced79a2cb0d003d1e0f97cc235..fa25832e0b97a280e5f4fe08d024ddfc2a4dd97d 100644
(file)
--- 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 9a29ffcfdd3427ced79a2cb0d003d1e0f97cc235..b6859eacc7f87c70cae3f2bb320e48158d146af3 100644
(file)
--- 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 ..
$@