diff options
| author | Cyril Brulebois <cyril@debamax.com> | 2021-08-28 05:52:51 +0200 |
|---|---|---|
| committer | Cyril Brulebois <cyril@debamax.com> | 2021-08-28 06:08:27 +0200 |
| commit | 252a6948489e8c15ef1cd9e714dc98dd427b16dc (patch) | |
| tree | 8edf62635e65551f3e481c0b055c81685580a07e | |
| parent | 0f8884c39cb83cf0e59957491ff5308cd0403a8c (diff) | |
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.
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 $@ |
