1 # http://www.gnu.org/software/make/manual/make.html#Multi_002dLine 2 # see also define.mk 3 4 override define two-lines 5 echo foo 6 echo $(bar) 7 endef 8 9 bar = xxx 10 11 override CC := gcc 12 override AS = as 13 override define three-lines 14 echo 1 15 echo 2 16 echo 3 17 endef 18 override define four-lines 19 echo I 20 echo II 21 echo III 22 echo IV 23 endef 24 25 test: 26 echo CC=$(CC) $(flavor CC) 27 echo AS=$(AS) $(flavor AS) 28 echo two BEGIN $(two-lines) END $(flavor two-lines) 29 echo three BEGIN $(three-lines) END $(flavor three-lines) 30 echo four BEGIN $(four-lines) END $(flavor four-lines) 31