blob: 1c9174a0cfe40aea14e5a523de3570ef6f298f8e [file] [log] [blame]
Fumitoshi Ukaid81f9b92015-07-21 17:07:08 +09001# TODO(c): Fix this. Maybe $(wildcard) always runs at eval-phase.
Fumitoshi Ukai3e5161e2015-04-01 22:42:10 +09002files = $(wildcard *,*)
3
Fumitoshi Ukaid81f9b92015-07-21 17:07:08 +09004# if make starts without foo,bar, it will be empty, although expect foo,bar.
Fumitoshi Ukai3e5161e2015-04-01 22:42:10 +09005test: foo,bar
6 echo $(files)
Fumitoshi Ukaid81f9b92015-07-21 17:07:08 +09007 echo $(wildcard foo*)
Fumitoshi Ukai3e5161e2015-04-01 22:42:10 +09008
9# first $(files) will be empty since no foo,bar exists.
10# second $(files) expects foo, but empty.
11foo,bar:
12 echo $(files)
13 touch foo,bar
14 echo $(files)
Shinichiro Hamaji7409aee2015-07-28 14:52:37 +090015
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))