Makefile recipe with a here-document redirection
问题 Does anyone know how to use a here-document redirection on a recipe? test: sh <<EOF echo I Need This echo To Work ls EOF I can't find any solution trying the usual backslash method (which basically ends with a command in a single line). Rationale: I have a set of multi-line recipes that I want to proxy through another command (e.g., sh, docker). onelinerecipe := echo l1 define twolinerecipe := echo l1 echo l2 endef define threelinerecipe := echo l1 echo l2 echo l3 endef # sh as proxy command