% RPP_GET_TARGET Returns name of platform the RPP code generation
% is configured for.
RppLibRoot = getpref('rpp', 'RppLibRoot');
- f = fopen(fullfile(RppLibRoot, 'Makefile.config'), 'r');
+ makefile_config = fullfile(RppLibRoot, 'Makefile.config');
+ if ~exist(makefile_config, 'file'),
+ error('rpp:noLibConfig', ...
+ ['RPP runtime library is not configured, "%s" does not exist! Please, recompile the library.'], ...
+ makefile_config);
+ end
+ f = fopen(makefile_config, 'r');
while ~feof(f),
l = fgetl(f);
[val, count] = sscanf(l, ' TARGET = %s');