Skip to content

Commit

Permalink
minor tweaks to the make and install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed May 6, 2024
1 parent 9791ae5 commit 37cffd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions install.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
post_install (d);

% Check if the user has run the make script
F = dir (inst_dir);
if (all (arrayfun (@(name) ismember (sprintf ('%s.%s', name{:}, mexext),{F.name}), {'boot', 'smoothmedian'})))
inst_files = dir (inst_dir);
if (all (arrayfun (@(name) ismember (sprintf ('%s.%s', name{:}, mexext), ...
{inst_files.name}), {'boot', 'smoothmedian'})))
try
boot (1, 1);
smoothmedian (1);
Expand All @@ -55,9 +56,9 @@
make_done = false;
end
if (~ make_done)
warning ('For optimal performance, run the ''make'' command in order to copy or compile the appropriate binaries')
warning ('For optimal performance, run the ''make'' command to copy or compile the appropriate binaries')
end

% Clean up
clear info isoctave S comment octaverc fid msg inst_dir d
clear info isoctave S comment octaverc fid msg inst_dir inst_files d make_done

2 changes: 1 addition & 1 deletion make.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
end
fprintf ('If you now execute ''install'', .m files equivalent to the mex files will be used instead. \n')
else
fprintf ('\n''make'' completed successfully. Please now run the ''install'' command. \n')
fprintf ('\n''make'' completed successfully. \nPlease now run the ''install'' command if you haven''t done so already. \n')
end

clear arch arch_idx binary binary_paths comp endian info isoctave maxsize errflag retval

0 comments on commit 37cffd6

Please sign in to comment.