build/pymake/tests/patsubst.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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