3
$description = "Test the subst and patsubst functions";
7
# Generic patsubst test: test both the function and variable form.
13
bar3:= $(patsubst %.c,%.o,x.c.c bar.c)
14
all:;@echo $(bar); echo $(bar2); echo $(bar3)',
20
# Patsubst without '%'--shouldn't match because the whole word has to match
21
# in patsubst. Based on a bug report by Markus Mauhart <qwe123@chello.at>
23
run_make_test('all:;@echo $(patsubst Foo,Repl,FooFoo)', '', 'FooFoo');
25
# Variable subst where a pattern matches multiple times in a single word.
26
# Based on a bug report by Markus Mauhart <qwe123@chello.at>
30
all:;@echo $(A:fooBARfoo=REPL)', '', 'fooBARREPL');