ensure that mex file exists before doing comparison

time-shift
Houtan Bastani 2015-05-12 10:54:24 +02:00
parent 8c480aea3d
commit 902a5d2788
1 changed files with 5 additions and 3 deletions

View File

@ -37,9 +37,11 @@ Dmex = dir([basename '_dynamic.' mexext]);
% compile only if date of C file is greater than date of mex file % compile only if date of C file is greater than date of mex file
% and force is not True % and force is not True
if (Dmex.datenum > Dc.datenum) && ~force if ~isempty(Dmex)
disp('Mex files are newer than the source: not recompiled') if (Dmex.datenum > Dc.datenum) && ~force
return disp('Mex files are newer than the source: not recompiled')
return
end
end end
if ~exist('OCTAVE_VERSION') if ~exist('OCTAVE_VERSION')