Browse Source

list templates on seperate lines

Mads Flensted-Urech 7 years ago
parent
commit
cbcb57ad25
2 changed files with 3 additions and 2 deletions
  1. 2 1
      plugins/bootstrap.mk
  2. 1 1
      test/plugin_bootstrap.mk

+ 2 - 1
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))))

+ 1 - 1
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