]> git.llucax.com Git - software/makeit.git/commitdiff
Add a global phony "test" target
authorLeandro Lucarella <llucarella@integratech.com.ar>
Mon, 21 Sep 2009 22:11:51 +0000 (19:11 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Thu, 24 Sep 2009 13:38:30 +0000 (10:38 -0300)
Following the "all", "install" and "doc", sub-makefiles can append to the
variable $(test) the rules they want to be executed when make has the
"test" target as a goal.

Lib.mak

diff --git a/Lib.mak b/Lib.mak
index cb49f2e7263a8a29cddcb79bda1ffd185bda98fd..f948ecaab5698c87023dfb127b55e6a95686aed3 100644 (file)
--- a/Lib.mak
+++ b/Lib.mak
@@ -358,6 +358,11 @@ install: $$(install)
 .PHONY: doc
 doc: $$(doc)
 
+# Phony rule to build and run all test (sub-makefiles can append targets to
+# build and run tests to the $(test) variable).
+.PHONY: test
+test: $$(test)
+
 
 # Create build directory structure
 ###################################