/[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.6 by psmith, Mon Jul 4 03:51:00 2005 UTC revision 1.7 by bosk, Fri Dec 9 16:46:20 2005 UTC
# Line 115  $(dir)/foo.bar: Line 115  $(dir)/foo.bar:
115    
116  unlink("$dir/foo.bar");  unlink("$dir/foo.bar");
117    
118    
119    # TEST #5: make sure targets of a macthed implicit pattern rule never
120    #          never considered intermediate (Savannah bug #13022).
121    #
122    run_make_test('
123    .PHONY: all
124    all: foo.c foo.o
125    
126    %.h %.c: %.in
127            touch $*.h
128            touch $*.c
129    
130    %.o: %.c %.h
131            echo $+ >$@
132    
133    %.o: %.c
134            @echo wrong rule
135    
136    foo.in:
137            touch $@
138    
139    ',
140    '',
141    'touch foo.in
142    touch foo.h
143    touch foo.c
144    echo foo.c foo.h >foo.o');
145    
146    unlink('foo.in', 'foo.h', 'foo.c', 'foo.o');
147    
148  # This tells the test driver that the perl test script executed properly.  # This tells the test driver that the perl test script executed properly.
149  1;  1;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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