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