From 252a6948489e8c15ef1cd9e714dc98dd427b16dc Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sat, 28 Aug 2021 05:52:51 +0200 Subject: [PATCH] Improve loop readability. Split dynamic target generation across several lines to make the nested loops more obvious. Backslashes are needed for make to be happy about what would otherwise be detected as unfinished foreach function calls. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9a22679..eeb6f82 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,9 @@ define dynamic_yaml_target = raspi_$(1)_$(2).yaml: ./generate-recipe.py $(1) $(2) endef -$(foreach release,$(BUILD_RELEASES),$(foreach family,$(BUILD_FAMILIES),$(eval $(call dynamic_yaml_target,$(family),$(release))))) +$(foreach release,$(BUILD_RELEASES), \ + $(foreach family,$(BUILD_FAMILIES), \ + $(eval $(call dynamic_yaml_target,$(family),$(release))))) %.img.sha256: %.img echo $@