Changeset 284 in kBuild for branches/GNU/src/gmake/tests/scripts/functions/eval
- Timestamp:
- May 16, 2005 4:54:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/tests/scripts/functions/eval
r53 r284 135 135 delete $ENV{EVAR}; 136 136 137 138 # Clean out previous information to allow new run_make_test() interface. 139 # If we ever convert all the above to run_make_test() we can remove this line. 140 $makefile = undef; 141 142 # Test handling of backslashes in strings to be evaled. 143 144 run_make_test(' 145 define FOO 146 all: ; @echo hello \ 147 world 148 endef 149 $(eval $(FOO)) 150 ', '', 'hello world'); 151 152 run_make_test(' 153 define FOO 154 all: ; @echo he\llo 155 @echo world 156 endef 157 $(eval $(FOO)) 158 ', '', 'hello 159 world'); 160 161 162 # We don't allow new target/prerequisite relationships to be defined within a 163 # command script, because these are evaluated after snap_deps() and that 164 # causes lots of problems (like core dumps!) 165 # See Savannah bug # 12124. 166 167 run_make_test('deps: ; $(eval deps: foo)', '', 168 '#MAKEFILE#:1: *** prerequisites cannot be defined in command scripts. Stop.', 169 512); 170 137 171 1;
Note:
See TracChangeset
for help on using the changeset viewer.

