Permalink
Browse files

Update ufo

  • Loading branch information...
1 parent 1a0fd4f commit 867a5d47f145ef42e51d793857942d568f50b883 @mpkh mpkh committed Mar 12, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 bin/ufo
View
10 bin/ufo
@@ -6,7 +6,7 @@ sub makefile_template() {
.PHONY: all build test install clean distclean purge
PERL6 = $binary
-DESTDIR= $ED
+DESTDIR=
PREFIX = $prefix
BLIB = blib
P6LIB = $(PWD)/$(BLIB)/lib:$(PWD)/lib:$(PERL6LIB)
@@ -57,13 +57,13 @@ sub MAIN($filename = 'Makefile', Bool :$alpha) {
my $makefile = $filename eq '-' ?? $*OUT !! open $filename, :w;
my $install_rules = join '', @modules>>.install-rule;
if $scripts {
- $install_rules ~= "\t\$(MKDIR) \$(DESTDIR)$(PREFIX)/bin\n"
- ~ "\t\$(CP) \$(SCRIPTS) \$(DESTDIR)$(PREFIX)/bin\n";
+ $install_rules ~= "\t\$(MKDIR) \$(DESTDIR)\$(PREFIX)/bin\n"
+ ~ "\t\$(CP) \$(SCRIPTS) \$(DESTDIR)\$(PREFIX)/bin\n";
}
for @pods {
my $dir = .subst(rx{<-[/]>+$}, '');
- $install_rules ~= "\t\$(MKDIR) \$(DESTDIR)$(PREFIX)/$dir\n";
- $install_rules ~= "\t\$(CP) $_ \$(DESTDIR)$(PREFIX)/$dir\n";
+ $install_rules ~= "\t\$(MKDIR) \$(DESTDIR)\$(PREFIX)/$dir\n";
+ $install_rules ~= "\t\$(CP) $_ \$(DESTDIR)\$(PREFIX)/$dir\n";
}
$makefile.print(

0 comments on commit 867a5d4

Please sign in to comment.