switch to INSTALLSITEARCH to avoid installing into core for perlbrew perls
[scpubgit/Rakudo-Star.git] / Makefile.PL
1 use strict;
2 use warnings FATAL => 'all';
3 use ExtUtils::MakeMaker;
4
5 WriteMakefile(
6   NAME => 'Rakudo-Star',
7   VERSION_FROM => 'lib/Rakudo/Star.pm',
8   AUTHOR => 'mst - Matt S. Trout (cpan:MSTROUT) <mst@shadowcat.co.uk>',
9 );
10
11 sub MY::postamble { <<'END' }
12
13 INSTALLRAKUDO=$(INSTALLSITEARCH)/Rakudo/Star/Install
14
15 all :: rakudo
16         touch blib/arch/auto/Rakudo-Star/force-arch
17
18 rakudo-star/Makefile :
19         cd rakudo-star; $(PERL) Configure.pl --gen-parrot --prefix=$(INSTALLRAKUDO)
20
21 rakudo : rakudo-star/Makefile
22         cd rakudo-star; mkdir -p rakudo/blib/Perl6 rakudo/blib/QPerl6; make all
23
24 install :: rakudoinstall
25
26 rakudoinstall :
27         cd rakudo-star; make install
28
29 manifest :
30         rm MANIFEST
31         $(PERL) "-MExtUtils::Manifest=mkmanifest" -e mkmanifest
32         echo "rakudo-star/parrot/.gitignore" >>MANIFEST
33         echo "rakudo-star/parrot/examples/compilers/Makefile" >>MANIFEST
34         echo "rakudo-star/parrot/examples/embed/Makefile" >>MANIFEST
35         echo "rakudo-star/parrot/examples/tools/Makefile" >>MANIFEST
36 END