From cbcb57ad25e63a8ff7952121b72458e5b2d04355 Mon Sep 17 00:00:00 2001 From: Mads Flensted-Urech Date: Fri, 11 May 2018 08:46:22 +0800 Subject: list templates on seperate lines --- plugins/bootstrap.mk | 3 ++- test/plugin_bootstrap.mk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/bootstrap.mk b/plugins/bootstrap.mk index 6c26a0f..88d71b2 100644 --- a/plugins/bootstrap.mk +++ b/plugins/bootstrap.mk @@ -499,4 +499,5 @@ else endif list-templates: - $(verbose) echo Available templates: $(sort $(patsubst tpl_%,%,$(filter tpl_%,$(.VARIABLES)))) + $(verbose) @echo Available templates: + $(verbose) printf " %s\n" $(sort $(patsubst tpl_%,%,$(filter tpl_%,$(.VARIABLES)))) diff --git a/test/plugin_bootstrap.mk b/test/plugin_bootstrap.mk index 37ea707..9fde93a 100644 --- a/test/plugin_bootstrap.mk +++ b/test/plugin_bootstrap.mk @@ -181,7 +181,7 @@ bootstrap-templates: build clean $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v $i "Check that we can get the list of templates" - $t test `$(MAKE) -C $(APP) --no-print-directory list-templates V=0 | wc -l` -eq 1 + $t test `$(MAKE) -C $(APP) --no-print-directory list-templates V=0 | wc -l` -gt 1 $i "Generate one of each template" $t $(MAKE) -C $(APP) --no-print-directory new t=gen_fsm n=my_fsm -- cgit v1.2.3