I want to use multiple % in my Makefile. Something kind of build-%-%
, is that possible to do? Here is a sample of what I would like to create:
SETA = cmd1 cmd2
SETB = amd64 arm
all: push
push: $(addprefix sub-push-,$(SETA))
sub-push-%: $(addprefix, sub-sub-push-%-,$(SETB))
sub-sub-push-%-%:
// This builds cmd1 for amd64 and arm and then cmd2 for amd64 and arm
Is it possible to do something like this? Apologies if the question is too dumb. :) TIA.