build/pymake/tests/patsubst.mk
author libmozevent <release-mgmt-analysis@mozilla.com>
Thu, 04 Jun 2020 05:19:41 +0000
changeset 2960917 5058d01d62290e3e08d00b6a00094494e7bfd874
parent 26359 80da01543b565978817c19ad3c739fda73784a79
permissions -rw-r--r--
try_task_config for https://phabricator.services.mozilla.com/D78218 Differential Diff: PHID-DIFF-67ej6uftycydwg3wa5ll

all:
	test "$(patsubst foo,%.bar,foo)" = "%.bar"
	test "$(patsubst \%word,replace,word %word other)" = "word replace other"
	test "$(patsubst %.c,\%%.o,foo.c bar.o baz.cpp)" = "%foo.o bar.o baz.cpp"
	test "$(patsubst host_%.c,host_%.o,dir/host_foo.c host_bar.c)" = "dir/host_foo.c host_bar.o"
	test "$(patsubst foo,bar,dir/foo foo baz)" = "dir/foo bar baz"
	@echo TEST-PASS