3 # Copyright (C) 2009, Parrot Foundation.
10 use lib "$Bin/../lib"; # install location
11 use lib "$Bin/../../lib"; # build location
12 use Parrot::Configure;
13 use Parrot::Configure::Options qw( process_options );
15 $| = 1; # $OUTPUT_AUTOFLUSH = 1;
17 my $args = process_options
(
19 step
=> 'gen::makefiles',
20 mode
=> 'reconfigure',
23 exit(1) unless ( defined $args );
25 my $template = $ARGV[0];
26 my $makefile = $ARGV[1];
28 my $conf = Parrot
::Configure
->new();
29 $conf->options->set( %{$args} );
30 $conf->data()->get_PConfig(); #load configuration data
32 next unless (/--(\w+)=(\w+)/);
33 $conf->data->set( $1 => $2 );
36 $template => $makefile,
37 file_type
=> 'makefile',
38 expand_gmake_syntax
=> 1,
45 # cperl-indent-level: 4
48 # vim: expandtab shiftwidth=4: