Commit 24e16cc4 authored by Claes Sjofors's avatar Claes Sjofors

Wb build, bugfix in execution of makefiles

parent 683a976b
...@@ -1210,7 +1210,10 @@ pwr_tStatus WbExpWNav::exp() ...@@ -1210,7 +1210,10 @@ pwr_tStatus WbExpWNav::exp()
if ( !mp->update) if ( !mp->update)
continue; continue;
sprintf( cmd, "cd %s;make %s", mp->dir, mp->makefile); if ( strcmp( mp->makefile, "") == 0)
sprintf( cmd, "cd %s;make", mp->dir);
else
sprintf( cmd, "cd %s;make -f %s", mp->dir, mp->makefile);
printf( "%s\n", cmd); printf( "%s\n", cmd);
sts = system( cmd); sts = system( cmd);
if ( sts != 0) { if ( sts != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment