diff options
Diffstat (limited to 'tests/scripts/features/mult_rules')
-rw-r--r-- | tests/scripts/features/mult_rules | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/scripts/features/mult_rules b/tests/scripts/features/mult_rules index bddd501c..ca6a1afe 100644 --- a/tests/scripts/features/mult_rules +++ b/tests/scripts/features/mult_rules @@ -1,3 +1,5 @@ +# -*-perl-*- + $description = "\ The following test creates a makefile to test the presence of multiple rules for one target. One file can be the @@ -21,8 +23,8 @@ print MAKEFILE <<EOF; objects = foo.o bar.o foo.o : defs.h bar.o : defs.h test.h -extradeps = -\$(objects) : config.h \$(extradeps) +extradeps = +\$(objects) : config.h \$(extradeps) \t\@echo EXTRA EXTRA EOF @@ -36,7 +38,7 @@ if ($vos) { $error_code = 3307; } -else +else { $error_code = 512; } @@ -78,9 +80,9 @@ all: hello.c; $(info $@ from $^) hello.c: ; $(info 1 $@) src/hello.c: ; $(info 2 $@) !, '', - "#MAKEFILE#:4: Recipe was specified for file 'hello.c' at #MAKEFILE#:4, -#MAKEFILE#:4: but 'hello.c' is now considered the same file as 'src/hello.c'. -#MAKEFILE#:4: Recipe for 'hello.c' will be ignored in favor of the one for 'src/hello.c'. + "#MAKEFILE#:4: recipe was specified for file 'hello.c' at #MAKEFILE#:4, +#MAKEFILE#:4: but 'hello.c' is now considered the same file as 'src/hello.c' +#MAKEFILE#:4: recipe for 'hello.c' will be ignored in favor of the one for 'src/hello.c' 2 src/hello.c all from src/hello.c #MAKE#: 'all' is up to date.\n"); |