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

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