Changeset 32 for Makefile.PL
- Timestamp:
- 02/16/05 18:48:28 (4 years ago)
- svk:copy_cache_prev:
- 1041
- Files:
-
- 1 modified
-
Makefile.PL (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Makefile.PL
r9 r32 3 3 use strict; 4 4 use FindBin; 5 use File::Spec; 5 6 use Config; 6 7 use inc::Module::Install; 7 8 8 9 chdir $FindBin::Bin; 10 my $pugs = File::Spec->catfile($FindBin::Bin, "pugs$Config{_exe}"); 9 11 10 12 name ('Perl6-Pugs'); … … 13 15 author ('Autrijus Tang <autrijus@autrijus.org>'); 14 16 license ('perl'); 15 install_script ( "pugs$Config{_exe}");17 install_script ($pugs); 16 18 build_requires ('Test::More'); 17 19 … … 67 69 68 70 postamble(<< "."); 69 pugs$Config{_exe}: @{[glob("src/*.hs")]}70 ghc --make -o pugs -Osrc/Main.hs -isrc71 $pugs: @{[glob("src/*.hs")]} 72 ghc --make -o pugs src/Main.hs -isrc 71 73 72 74 tags :: … … 75 77 76 78 WriteAll( sign => 1 ); 79 80 # FIXUP 81 open MAKEFILE, '< Makefile' or die $!; 82 my $makefile = do { local $/; <MAKEFILE> }; 83 $makefile =~ s/\b(test_harness\(\$\(TEST_VERBOSE\), )/ENV->{HARNESS_PERL} = '$pugs'; $1/; 84 close MAKEFILE; 85 open MAKEFILE, '> Makefile' or die $!; 86 print MAKEFILE $makefile; 87 close MAKEFILE;
