/[make]/make/tests/scripts/features/patternrules
ViewVC logotype

Diff of /make/tests/scripts/features/patternrules

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by bosk, Fri Mar 4 14:31:09 2005 UTC revision 1.3 by bosk, Thu Mar 10 09:14:09 2005 UTC
# Line 4  $description = "Test pattern rules."; Line 4  $description = "Test pattern rules.";
4    
5  $details = "";  $details = "";
6    
7    use Cwd;
8    
9    $dir = cwd;
10    $dir =~ s,.*/([^/]+)$,../$1,;
11    
12    
13  #  TEST #1: Make sure that multiple patterns where the same target  #  TEST #1: Make sure that multiple patterns where the same target
14  #           can be built are searched even if the first one fails  #           can be built are searched even if the first one fails
15  #           to match properly.  #           to match properly.
# Line 63  foo.in: ; @: Line 69  foo.in: ; @:
69  foo.out');  foo.out');
70    
71    
72    # TEST #3: make sure intermidite files that also happened to be
73    #          prerequisites are not removed (Savannah bug #12267).
74    #
75    run_make_test('
76    $(dir)/foo.o:
77    
78    $(dir)/foo.y:
79            @echo $@
80    
81    %.c: %.y
82            touch $@
83    
84    %.o: %.c
85            @echo $@
86    
87    .PHONY: install
88    install: $(dir)/foo.c
89    
90    ',
91    "dir=$dir",
92    "$dir/foo.y
93    touch $dir/foo.c
94    $dir/foo.o");
95    
96    unlink("$dir/foo.c");
97    
98  # This tells the test driver that the perl test script executed properly.  # This tells the test driver that the perl test script executed properly.
99  1;  1;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26