1 MAKEVER:=$(shell make --version | ruby -n0e 'puts $$_[/Make (\d)/,1]') 2 3 # GNU make 4 doesn't sort glob results. 4 ifeq ($(MAKEVER,4)) 5 6 $(info test skipped) 7 8 else 9 10 test1: 11 echo '$$(info foo)' > foo.d 12 echo '$$(info bar)' > bar.d 13 14 test2: 15 echo $(wildcard *.d) 16 17 -include *.d 18 19 endif 20