# and third arguments are optional and are the target name and command name to
# pretty print.
vexec = $(if $V,\
- echo ' $(notdir $(if $3,$(strip $3),$(firstword $1))) \
+ echo ' $(call abbr,$(if $3,$(strip $3),$(firstword $1))) \
$(call abbr,$(if $2,$(strip $2),$@))' ; )$1
# Same as vexec but it silence the echo command (prepending a @ if $V).
.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
###################################