2 $description = "Test various types of escaping in makefiles.";
5 Make sure that escaping of ':' works in target names.
6 Make sure escaping of whitespace works in target names.
7 Make sure that escaping of '#' works.";
16 $(path)foo : ; @echo "touch ($@)"
18 foo\ bar: ; @echo "touch ($@)"
21 foo\#bar.ext: ; @echo "foo#bar.ext = ($@)"',
25 # TEST 2: This one should fail, since the ":" is unquoted.
29 "#MAKEFILE#:2: *** target pattern contains no '%'. Stop.",
32 # TEST 3: This one should work, since we escape the ":".
38 # TEST 4: This one should fail, since the escape char is escaped.
42 "#MAKEFILE#:2: *** target pattern contains no '%'. Stop.",
45 # TEST 5: This one should work
51 # TEST 6: Test escaped comments
55 'foo#bar.ext = (foo#bar.ext)');
57 # This tells the test driver that the perl test script executed properly.