From 82cc7a235516ed0926a1f1ee70f0c567687c7a83 Mon Sep 17 00:00:00 2001 From: Mathias Kende Date: Sun, 7 Apr 2024 23:18:41 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20write=20our=20Makefile=20postam?= =?UTF-8?q?ble=20under=20Solaris.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems that the `make` variant on Solaris does not support the full GNU make syntax. --- Makefile.PL | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 01512ae..b1e3aeb 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -8,7 +8,6 @@ use strict; use warnings; use ExtUtils::MakeMaker::CPANfile; - WriteMakefile( NAME => 'Markdown::Perl', DISTNAME => 'Markdown-Perl', @@ -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) @@ -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