Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #582 from donaldh/configure
Unbust Makefile generation in Configure.pl.
  • Loading branch information
FROGGS committed Nov 12, 2015
2 parents 43e9d37 + 1a7af1a commit 25f032a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Configure.pl
Expand Up @@ -151,6 +151,18 @@
}
}

for my $target (qw/common_bootstrap_sources moar_core_sources/) {
open my $FILELIST, '<', "tools/build/$target"
or die "Cannot read 'tools/build/$target': $!";
my @lines;
while (<$FILELIST>) {
chomp;
push @lines, " $_\\\n";
}
close $FILELIST;
$config{$target} = join '', @lines;
}

open my $MAKEFILE, '>', 'Makefile'
or die "Cannot open 'Makefile' for writing: $!";

Expand All @@ -171,18 +183,6 @@
print $MAKEFILE "$t: ", join(' ', map "$_-$t", @prefixes), "\n";
}

for my $target (qw/common_bootstrap_sources moar_core_sources/) {
open my $FILELIST, '<', "tools/build/$target"
or die "Cannot read 'tools/build/$target': $!";
my @lines;
while (<$FILELIST>) {
chomp;
push @lines, " $_\\\n";
}
close $FILELIST;
$config{$target} = join '', @lines;
}

fill_template_file('tools/build/Makefile-common-rules.in', $MAKEFILE, %config);

# determine the version of NQP we want
Expand Down

0 comments on commit 25f032a

Please sign in to comment.