> though it’s probably a bug that whitespace in target names must be escaped, since it’s just one token that ends in a colon
It's perfectly fine for a rule to have multiple targets, e.g.
output.txt error.txt: source
build source > output.txt 2> error.txt