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

Diff of /make/tests/scripts/features/se_explicit

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

revision 1.1 by bosk, Sun Feb 27 21:40:25 2005 UTC revision 1.2 by psmith, Mon Oct 24 13:01:41 2005 UTC
# Line 3  $description = "Test second expansion in Line 3  $description = "Test second expansion in
3    
4  $details = "";  $details = "";
5    
6  # Test #1: automatic variables.  # TEST #0: Test handing of '$' in prerequisites with and without second
7    # expansion.
8    
9    run_make_test(q!
10    ifdef SE
11      .SECONDEXPANSION:
12    endif
13    foo$$bar: bar$$baz bar$$biz ; @echo '$@ : $^'
14    PRE = one two
15    bar$$baz: $$(PRE)
16    baraz: $$(PRE)
17    PRE = three four
18    .DEFAULT: ; @echo '$@'
19    !,
20                  '',
21                  "\$\nbar\$biz\nfoo\$bar : bar\$baz bar\$biz");
22    
23    run_make_test(undef, 'SE=1', "three\nfour\nbariz\nfoo\$bar : baraz bariz");
24    
25    # TEST #1: automatic variables.
26  #  #
27  run_make_test('  run_make_test('
28    .SECONDEXPANSION:
29  .DEFAULT: ; @echo $@  .DEFAULT: ; @echo $@
30    
31  foo: bar baz  foo: bar baz
# Line 41  buz.5 Line 61  buz.5
61  # Test #2: target/pattern -specific variables.  # Test #2: target/pattern -specific variables.
62  #  #
63  run_make_test('  run_make_test('
64    .SECONDEXPANSION:
65  .DEFAULT: ; @echo $@  .DEFAULT: ; @echo $@
66    
67  foo.x: $$a $$b  foo.x: $$a $$b
# Line 59  baz Line 80  baz
80  # Test #3: order of prerequisites.  # Test #3: order of prerequisites.
81  #  #
82  run_make_test('  run_make_test('
83    .SECONDEXPANSION:
84  .DEFAULT: ; @echo $@  .DEFAULT: ; @echo $@
85    
86  all: foo bar baz  all: foo bar baz

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

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