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.
This commit is contained in:
parent
0f8884c39c
commit
252a694848
4
Makefile
4
Makefile
|
@ -30,7 +30,9 @@ define dynamic_yaml_target =
|
||||||
raspi_$(1)_$(2).yaml:
|
raspi_$(1)_$(2).yaml:
|
||||||
./generate-recipe.py $(1) $(2)
|
./generate-recipe.py $(1) $(2)
|
||||||
endef
|
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
|
%.img.sha256: %.img
|
||||||
echo $@
|
echo $@
|
||||||
|
|
Loading…
Reference in New Issue