Skip to content

Commit

Permalink
Allow missing of |make| in |--install-perl-app
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaba committed Mar 21, 2024
1 parent e50953e commit bb868dc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bin/pmbp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5638,9 +5638,14 @@ ($$$;%)
or info_die "|$name|: |git checkout $sha| failed";
}

run_command ['make', '-q', 'deps'], chdir => $dir_name,
'$?' => \my $deps;
if (($deps >> 8) == 0 or ($deps >> 8) == 1) {
my $can_make_deps = 0;
if (-f "$dir_name/Makefile") {
install_commands ['make'];
run_command ['make', '-q', 'deps'], chdir => $dir_name,
'$?' => \my $deps;
$can_make_deps = (($deps >> 8) == 0 or ($deps >> 8) == 1);
}
if ($can_make_deps) {
# $ make deps
run_command ['make', 'deps'], chdir => $dir_name,
envs => {PMBP_VERBOSE => 100},
Expand Down

0 comments on commit bb868dc

Please sign in to comment.