Skip to content

Commit

Permalink
[ufo] 'make install' installs .pir files
Browse files Browse the repository at this point in the history
Reversed moritz++'s decision to install the .pm files per default and the
.pir files only secondarily. The .pir files are the built resource to be
installed, and the .pm files secondary. It might make sense to add the latter
for documentation-browsing reasons, etc. Remains to be seen what pls will
do by default.
  • Loading branch information
Carl Masak committed Jun 14, 2010
1 parent 293547c commit f5ddb07
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ufo
Expand Up @@ -117,20 +117,19 @@ clean:
test: all
\tenv PERL6LIB=\$(PERL6LIB) prove -e '\$(PERL6)' -r --nocolor t/]);


sub write-install($extension?) {
for @sources -> $s {
my $file = defined $extension
?? $s.subst(rx{\.pm6?$}, '.' ~ $extension)
!! $s;
!! $s;
$makefile.say("\tinstall -D $file ~/.perl6/$file");
}
}

$makefile.say(q[]);
$makefile.say(q[install:]);
write-install();
$makefile.say(q[install: all]);
write-install('pir');

$makefile.say(q[]);
$makefile.say(q[install-pir: all]);
write-install('pir');
$makefile.say(q[install-src:]);
write-install();

0 comments on commit f5ddb07

Please sign in to comment.