/[make]/make/tests/scripts/variables/DEFAULT_TARGET
ViewVC logotype

Diff of /make/tests/scripts/variables/DEFAULT_TARGET

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

revision 1.1 by bosk, Sun Feb 27 22:24:31 2005 UTC revision 1.2 by bosk, Wed Mar 9 19:21:34 2005 UTC
# Line 3  $description = "Test the .DEFAULT_TARGET Line 3  $description = "Test the .DEFAULT_TARGET
3    
4  $details = "";  $details = "";
5    
6    
7  # Test #1: basic logic.  # Test #1: basic logic.
8  #  #
9  run_make_test('  run_make_test('
# Line 45  run_make_test(' Line 46  run_make_test('
46  512);  512);
47    
48    
49  # Test #2: more than one target.  # Test #3: more than one target.
50  #  #
51  run_make_test('  run_make_test('
52  .DEFAULT_TARGET := foo bar  .DEFAULT_TARGET := foo bar
# Line 55  run_make_test(' Line 56  run_make_test('
56  512);  512);
57    
58    
59    # Test #4: Savannah bug #12226.
60    #
61    run_make_test('
62    define rule
63    foo: ; @echo $$@
64    endef
65    
66    define make-rule
67    $(eval $(rule))
68    endef
69    
70    $(call make-rule)
71    
72    ',
73    '',
74    'foo');
75    
76    
77  # This tells the test driver that the perl test script executed properly.  # This tells the test driver that the perl test script executed properly.
78  1;  1;

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