/[make]/make/tests/scripts/misc/general4
ViewVC logotype

Diff of /make/tests/scripts/misc/general4

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

revision 1.5 by psmith, Wed Oct 26 16:06:30 2005 UTC revision 1.6 by psmith, Sun Dec 11 15:41:17 2005 UTC
# Line 53  baz$$bar bar$$baz: ; @echo '$@' Line 53  baz$$bar bar$$baz: ; @echo '$@'
53                '',                '',
54                "baz\$bar\ndone baz\$bar");                "baz\$bar\ndone baz\$bar");
55    
56    
57    # Test implicit rules with '$' in the name (see se_implicit)
58    # Use the '$' in the pattern.
59    
60    run_make_test(q!
61    %.foo : %$$bar ; @echo 'done $<'
62    test.foo:
63    test$$bar: ; @echo '$@'
64    !,
65                  '',
66                  "test\$bar\ndone test\$bar");
67    
68    # Make sure that subdirectories built as prerequisites are actually handled
69    # properly... this time with '$'
70    
71    run_make_test(q!
72    
73    all: dir/subdir/file.$$a
74    
75    dir/subdir: ; @echo mkdir -p '$@'
76    
77    dir/subdir/file.$$b: dir/subdir ; @echo touch '$@'
78    
79    dir/subdir/%.$$a: dir/subdir/%.$$b ; @echo 'cp $< $@'
80    !,
81                  '', "mkdir -p dir/subdir\ntouch dir/subdir/file.\$b\ncp dir/subdir/file.\$b dir/subdir/file.\$a\n");
82    
83  1;  1;

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

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