From 0afbbf8595b6035a5a930399d20320d2e2852d72 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Thu, 24 Sep 2009 02:41:44 +0000 Subject: - Rework secondary expansion so we only defer it if there's a possibility it might be needed: for most situations we parse prereqs immediately as we used to. Reduces memory usage. - Fixes Savannah bug #18622. --- tests/scripts/features/patternrules | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/scripts/features/patternrules') diff --git a/tests/scripts/features/patternrules b/tests/scripts/features/patternrules index c5bc3db..dcaf0dd 100644 --- a/tests/scripts/features/patternrules +++ b/tests/scripts/features/patternrules @@ -190,5 +190,23 @@ dep: ; @echo $@ '', "dep\nx.t1\nx.t2\nx\nfinal\n"); +# TEST 8: Verify we can remove pattern rules. Savannah bug #18622. + +my @f = (qw(foo.w foo.ch)); +touch(@f); + +run_make_test(q! +CWEAVE := : + +# Disable builtin rules +%.tex : %.w +%.tex : %.w %.ch +!, + 'foo.tex', + "#MAKE#: *** No rule to make target `foo.tex'. Stop.", 512); + +unlink(@f); + + # This tells the test driver that the perl test script executed properly. 1; -- cgit v1.2.3