Skip to content

Commit

Permalink
Updated, but no change of logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
matsduf committed Oct 26, 2020
1 parent b9f8f96 commit 4a61ab5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,16 @@ if ($^O eq "freebsd") {

sub MY::postamble {
my $sharemakefile = 'share/GNUmakefile';
my $text;
if ($^O eq "freebsd") {
# Make FreeBSD use gmake for share
$text = q[GMAKE ?= "gmake"] . "\n"
. q[pure_all :: ] . "$sharemakefile\n"
. "\t" . q[cd share && $(GMAKE) all] . "\n";
return "GMAKE ?= \"gmake\"\n"
. "pure_all :: $sharemakefile\n"
. "\tcd share && \$(GMAKE) all\n";
} else {
# Here Linux and GNU Make is assumed
$text = q[pure_all :: ] . "$sharemakefile\n"
. "\t" . q[cd share && $(MAKE) all] . "\n";
return "pure_all :: $sharemakefile\n"
. "\tcd share && \$(MAKE) all\n";
};
return $text;
};


Expand Down

0 comments on commit 4a61ab5

Please sign in to comment.