aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Makefile
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-01-05 15:05:57 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-01-06 10:32:06 -0800
commit341d49b0610fcf725da618d87fda577a3d512343 (patch)
tree3cb15de023d23f2eae4e3827aa4baa8aeda0630a /lib/Makefile
parent3f32fd8a1c06d417bdcb467bac2805f658cb5476 (diff)
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.
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile6
1 files changed, 4 insertions, 2 deletions
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 .. $@