Most of the patterns in in the target-template will actually match all targets with the same class (actually buildprefix). It would make this distinction clearer if a separate template was created for classes and run on each class ( $(sort $(foreach target,$(TARGETS),$(call target-class,$(target)))) ) instead of on each target.
Most of the patterns in in the target-template will actually match all targets with the same class (actually buildprefix). It would make this distinction clearer if a separate template was created for classes and run on each class ( $(sort $(foreach target,$(TARGETS),$(call target-class,$(target)))) ) instead of on each target.