1 # TODO(c): Fix this. Maybe $(wildcard) always runs at eval-phase. 2 files = $(wildcard *,*) 3 4 # if make starts without foo,bar, it will be empty, although expect foo,bar. 5 test: foo,bar 6 echo $(files) 7 echo $(wildcard foo*) 8 9 # first $(files) will be empty since no foo,bar exists. 10 # second $(files) expects foo, but empty. 11 foo,bar: 12 echo $(files) 13 touch foo,bar 14 echo $(files) 15 16 $(shell mkdir dir) 17 $(info $(wildcard dir/not_exist)) 18 $(shell touch dir/file) 19 # This should show nothing. 20 $(info $(wildcard dir/file)) 21