build/pymake/tests/patsubst.mk

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:e865174ef1c9
1 all:
2 test "$(patsubst foo,%.bar,foo)" = "%.bar"
3 test "$(patsubst \%word,replace,word %word other)" = "word replace other"
4 test "$(patsubst %.c,\%%.o,foo.c bar.o baz.cpp)" = "%foo.o bar.o baz.cpp"
5 test "$(patsubst host_%.c,host_%.o,dir/host_foo.c host_bar.c)" = "dir/host_foo.c host_bar.o"
6 test "$(patsubst foo,bar,dir/foo foo baz)" = "dir/foo bar baz"
7 @echo TEST-PASS

mercurial