VirtualBox

Ignore:
Timestamp:
May 16, 2005 4:54:08 PM (19 years ago)
Author:
bird
Message:

Current make snaphot, 2005-05-16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/tests/scripts/features/patspecific_vars

    r53 r284  
    6262&compare_output($answer,&get_logfile(1));
    6363
     64# TEST #5 -- test pattern-specific exported variables
     65#
     66run_make_test('
     67/%: export foo := foo
     68
     69/bar:
     70        @test "$(foo)" = "$$foo"
     71', '', '');
     72
     73
     74# TEST #6 -- test expansion of pattern-specific simple variables
     75#
     76run_make_test('
     77.PHONY: all
     78
     79all: inherit := good $$t
     80all: bar baz
     81
     82b%: pattern := good $$t
     83
     84global := orginal $$t
     85
     86
     87# normal target
     88#
     89ifdef rec
     90bar: a = global: $(global) pattern: $(pattern) inherit: $(inherit)
     91else
     92bar: a := global: $(global) pattern: $(pattern) inherit: $(inherit)
     93endif
     94
     95bar: ; @echo \'normal: $a;\'
     96
     97
     98# pattern target
     99#
     100ifdef rec
     101%z: a = global: $(global) pattern: $(pattern) inherit: $(inherit)
     102else
     103%z: a := global: $(global) pattern: $(pattern) inherit: $(inherit)
     104endif
     105
     106%z: ; @echo \'pattrn: $a;\'
     107
     108
     109global := new $$t
     110',
     111'',
     112'normal: global: orginal $t pattern:  inherit: ;
     113pattrn: global: orginal $t pattern:  inherit: ;');
     114
     115
     116# TEST #7 -- test expansion of pattern-specific recursive variables
     117#
     118run_make_test(undef, # reuse previous makefile
     119'rec=1',
     120'normal: global: new $t pattern: good $t inherit: good $t;
     121pattrn: global: new $t pattern: good $t inherit: good $t;');
     122
     123
    641241;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette