From: Leandro Lucarella Date: Mon, 21 Sep 2009 22:11:51 +0000 (-0300) Subject: Add a global phony "test" target X-Git-Url: https://git.llucax.com/software/makeit.git/commitdiff_plain/15551bd077a4b0faaf64ede1634251695f38e0be Add a global phony "test" target 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. --- diff --git a/Lib.mak b/Lib.mak index cb49f2e..f948eca 100644 --- 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 ###################################