Changeset 284 in kBuild for branches/GNU/src/gmake/tests/scripts/features/patspecific_vars
- Timestamp:
- May 16, 2005 4:54:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/tests/scripts/features/patspecific_vars
r53 r284 62 62 &compare_output($answer,&get_logfile(1)); 63 63 64 # TEST #5 -- test pattern-specific exported variables 65 # 66 run_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 # 76 run_make_test(' 77 .PHONY: all 78 79 all: inherit := good $$t 80 all: bar baz 81 82 b%: pattern := good $$t 83 84 global := orginal $$t 85 86 87 # normal target 88 # 89 ifdef rec 90 bar: a = global: $(global) pattern: $(pattern) inherit: $(inherit) 91 else 92 bar: a := global: $(global) pattern: $(pattern) inherit: $(inherit) 93 endif 94 95 bar: ; @echo \'normal: $a;\' 96 97 98 # pattern target 99 # 100 ifdef rec 101 %z: a = global: $(global) pattern: $(pattern) inherit: $(inherit) 102 else 103 %z: a := global: $(global) pattern: $(pattern) inherit: $(inherit) 104 endif 105 106 %z: ; @echo \'pattrn: $a;\' 107 108 109 global := new $$t 110 ', 111 '', 112 'normal: global: orginal $t pattern: inherit: ; 113 pattrn: global: orginal $t pattern: inherit: ;'); 114 115 116 # TEST #7 -- test expansion of pattern-specific recursive variables 117 # 118 run_make_test(undef, # reuse previous makefile 119 'rec=1', 120 'normal: global: new $t pattern: good $t inherit: good $t; 121 pattrn: global: new $t pattern: good $t inherit: good $t;'); 122 123 64 124 1;
Note:
See TracChangeset
for help on using the changeset viewer.

