jerry gay wrote:
perhaps instead there should be a method to return a
value with all $(FOO) syntax resolved by lookup first in
Parrot::Config
1. Can I assume that you're talking about parts of
Parrot::Config::Generated that look like this:
%PConfig_Temp = ( 'TEMP_atomic_o' => '',
'TEMP_cg_c' => '# generated by
config/auto/cgoto.pm$(OPS_DIR)/core_ops_cg$(O): $(GENERAL_H_FILES)
$(OPS_DIR)/core_ops_cg.c$(OPS_DIR)/core_ops_cgp$(O): $(GENERAL_H_FILES)
$(OPS_DIR)/core_ops_cgp.c$(SRC_DIR)/runops_cores.c:
$(INC_DIR)/oplib/core_ops_cgp.h
2. If so, does there already exist a way to parse the Makefile,
treating it as a series of key = value pairs and storing the results in
a Perl hash?
and then %ENV
3. Which values, exactly, in %ENV?
. that would provide a way to get the
needed values, without modifying the generation of
Parrot::Config::Generated.
thoughts?
If I knew the answers to 1, 2 and 3, I could write it 1-2-3.
kid51