aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMads Flensted-Urech <[email protected]>2018-05-11 08:46:22 +0800
committerLoïc Hoguin <[email protected]>2018-05-14 13:24:15 +0200
commitcbcb57ad25e63a8ff7952121b72458e5b2d04355 (patch)
tree1e77d47877d865807326508dc49a53ab6594e1f7
parentb92675833b3c5154a1477c18a373420b477c8196 (diff)
downloaderlang.mk-cbcb57ad25e63a8ff7952121b72458e5b2d04355.tar.gz
erlang.mk-cbcb57ad25e63a8ff7952121b72458e5b2d04355.tar.bz2
erlang.mk-cbcb57ad25e63a8ff7952121b72458e5b2d04355.zip
list templates on seperate lines
-rw-r--r--plugins/bootstrap.mk3
-rw-r--r--test/plugin_bootstrap.mk2
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