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