Let's say I have a rule like this.
cmd is badly written, so I actually can't switch the order of the flags. -f must go before -d.
out: foo.txt mydir fizz.txt
cmd -f fizz.txt -d mydir foo.txt
Is it possible to get the Nth prerequisite so that I can rewrite my rule something like this (pseudocode)?
out: foo.txt mydir fizz.txt
cmd -f $^[2] -d $^[1] $<