build/pymake/tests/patsubst.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/pymake/tests/patsubst.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,7 @@
     1.4 +all:
     1.5 +	test "$(patsubst foo,%.bar,foo)" = "%.bar"
     1.6 +	test "$(patsubst \%word,replace,word %word other)" = "word replace other"
     1.7 +	test "$(patsubst %.c,\%%.o,foo.c bar.o baz.cpp)" = "%foo.o bar.o baz.cpp"
     1.8 +	test "$(patsubst host_%.c,host_%.o,dir/host_foo.c host_bar.c)" = "dir/host_foo.c host_bar.o"
     1.9 +	test "$(patsubst foo,bar,dir/foo foo baz)" = "dir/foo bar baz"
    1.10 +	@echo TEST-PASS

mercurial