Skip to content

Commit

Permalink
install pdldoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Dec 9, 2024
1 parent 5b4ca73 commit 7f8c25a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use ExtUtils::MakeMaker;
use strict;
use warnings;
use PDL::Core::Dev;

my $package_name = "PDL::IO::ENVI";
(my $repo = $package_name) =~ s#::#-#g;
Expand All @@ -11,6 +12,7 @@ WriteMakefile(
AUTHOR => 'PerlDL Developers <[email protected]>',
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
'PDL' => '2.094',
},
PREREQ_PM => {
'PDL' => '2.094',
Expand All @@ -29,3 +31,8 @@ WriteMakefile(
},
},
);

sub MY::postamble {
my $oneliner = PDL::Core::Dev::_oneliner(qq{exit if \$ENV{DESTDIR}; use PDL::Doc; eval { PDL::Doc::add_module(shift); }});
qq|\ninstall :: pure_install\n\t$oneliner \$(NAME)\n|;
}

0 comments on commit 7f8c25a

Please sign in to comment.