1# http://www.gnu.org/software/make/manual/make.html#Multi_002dLine 2# Note: in make 4.x 3# define name = 4# ... 5# endef 6# 7# but in make 3.x 8# define name 9# ... 10# endef 11# i.e. no = needed after name. 12# make 3.x defines "name =" for make 4.x example. 13# TODO: should we provide flag to specify gnu make version? 14# note: in make 4.x, there is `undefine`. 15 16define two-lines 17echo foo 18echo $(bar) 19endef 20 21bar = xxx 22 23test: 24 echo BEGIN $(two-lines) END 25