1 MAKEVER:=$(shell make --version | ruby -n0e 'puts $$_[/Make (\d)/,1]') 2 3 test1: 4 # foo 5 echo PASS 6 7 test2: make$(MAKEVER) 8 9 make4: 10 # foo \ 11 echo PASS 12 13 make3: 14 # foo \ 15 echo PASS 16 17 test3: $(shell echo foo #) 18 19 test4: 20 echo $(shell echo OK # FAIL \ 21 FAIL2) 22 23 test5: 24 echo $(shell echo $$(echo PASS)) 25 26 foo: 27 echo OK 28