1# TODO(c): Fix this. Maybe $(wildcard) always runs at eval-phase. 2 3# GNU make 4 agrees with ckati. 4MAKEVER:=$(shell make --version | ruby -n0e 'puts $$_[/Make (\d)/,1]') 5ifeq ($(MAKE)$(MAKEVER),make4) 6$(error test skipped) 7endif 8 9files = $(wildcard *,*) 10 11# if make starts without foo,bar, it will be empty, although expect foo,bar. 12test: foo,bar 13 echo $(files) 14 echo $(wildcard foo*) 15 16# first $(files) will be empty since no foo,bar exists. 17# second $(files) expects foo, but empty. 18foo,bar: 19 echo $(files) 20 touch foo,bar 21 echo $(files) 22 23$(shell mkdir dir) 24$(info $(wildcard dir/not_exist)) 25$(shell touch dir/file) 26# This should show nothing. 27$(info $(wildcard dir/file)) 28