1# TODO(go): Fix 2 3MAKEVER:=$(shell make --version | ruby -n0e 'puts $$_[/Make (\d)/,1]') 4 5files = $(wildcard M*) 6 7$(shell mkdir -p tmp) 8files += $(wildcard tmp/../M*) 9files += $(wildcard not_exist/../M*) 10files += $(wildcard tmp/../M* not_exist/../M* tmp/../M*) 11# GNU make 4 does not sort the result of $(wildcard) 12ifeq ($(MAKEVER),3) 13files += $(wildcard [ABC] C B A) 14endif 15 16test1: 17 touch A C B 18 19test2: 20 echo $(files) 21