Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (36 sloc) 0.958 kb
04f9724 Add configure script, piggy-backing on parrot's reconfigure to generate
wcoleda authored
1 #! perl
2
3 use strict;
4 use warnings;
5
72b645a Move closer to building against an installed parrot.
wcoleda authored
6 my $perlbin = `parrot_config perl`;
7 my $libdir = `parrot_config libdir`;
8 my $versiondir = `parrot_config versiondir`;
9 my $slash = `parrot_config slash`;
10 my $make = `parrot_config make`;
11
12 chomp($perlbin);
13 chomp($libdir);
14 chomp($versiondir);
15 chomp($slash);
16 chomp($make);
17
18 my $build_tool = $perlbin . " "
19 . $libdir
20 . $versiondir
21 . $slash
22 . "tools"
23 . $slash
24 . "dev"
25 . $slash
26 . "gen_makefile.pl";
27
28 my %makefiles = (
29 "config/makefiles/root.in" => "Makefile",
30 "config/makefiles/pmc.in" => "src/pmc/Makefile",
31 "config/makefiles/ops.in" => "src/ops/Makefile",
32 );
33
34 foreach my $template (keys %makefiles) {
35 my $makefile = $makefiles{$template};
36 print "Creating $makefile\n";
37 system("$build_tool $template $makefile");
38 }
39
40 print <<"END";
41
42 You can now use '$make' to build Partcl.
43 END
44
45 exit;
Something went wrong with that request. Please try again.