How to use multiple-line variable
问题 How to use multiple-line variable in recipe? file-name: multiple-line-variable define foo = echo welcome endef export foo all: echo $(foo) I get following output. But i expect 'welcome' print. $ make -f multiple-line-variable echo 回答1: SunEric's answer didn't correctly explain what was happening. Adding, or not, the @ has absolutely zero to do with the reason you're not seeing "welcome" printed. The reason your original example did not work as expected is because you're reading the GNU make