From 15551bd077a4b0faaf64ede1634251695f38e0be Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 21 Sep 2009 19:11:51 -0300 Subject: [PATCH] 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. --- Lib.mak | 5 +++++ 1 file changed, 5 insertions(+) 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 ################################### -- 2.43.0