Skip to content

Commit

Permalink
Don’t write our Makefile postamble under Solaris.
Browse files Browse the repository at this point in the history
It seems that the `make` variant on Solaris does not support the full GNU make syntax.
  • Loading branch information
mkende committed Apr 7, 2024
1 parent e5524de commit 82cc7a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use strict;
use warnings;
use ExtUtils::MakeMaker::CPANfile;


WriteMakefile(
NAME => 'Markdown::Perl',
DISTNAME => 'Markdown-Perl',
Expand Down Expand Up @@ -52,7 +51,8 @@ sub MY::postamble {
my @postamble;
push @postamble, ::postamble() if *::postamble{CODE};

push @postamble, <<"MAKE_FRAGMENT";
# Solaris has a weird (?) make that does not support our `export` statements.
push @postamble, <<"MAKE_FRAGMENT" unless $^O eq 'solaris';
distupload: distcheck disttest
\t\$(MAKE) tardist
\tcpan-upload --directory Dist-Setup \$(DISTVNAME).tar\$(SUFFIX)
Expand Down Expand Up @@ -92,6 +92,7 @@ MAKE_FRAGMENT
# End of the template. You can add custom content below this line.

sub postamble {
return if $^O eq 'solaris';
return <<"EOF";
profile:
\t-perl -Ilib -d:NYTProf t/900-cmark-test-suite.t --fast
Expand Down

0 comments on commit 82cc7a2

Please sign in to comment.