1MAKEVER:=$(shell make --version | ruby -n0e 'puts $$_[/Make (\d)/,1]') 2 3test: abcd 4 5abcd: 6 7# GNU make 3 does not prioritize the rule with a shortest stem. 8ifeq ($(MAKEVER),4) 9a%: 10 echo FAIL 11endif 12abc%: 13 echo PASS 14ab%: 15 echo FAIL 16