github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/kati/testcase/implicit_pattern_rule_prefix.mk (about)

     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