Kaydet (Commit) 1de0901d authored tarafından Luboš Luňák's avatar Luboš Luňák

avoid error message about removing non-existent file

If it's a first build, there are no Makefiles in the build dir.

Change-Id: Idec99145a5fb273921f58d92013a1c882cb8b026
üst 43f30952
......@@ -175,7 +175,7 @@ if ($src_path ne $build_path)
{
my $dir = basename (dirname ($module));
mkdir ($dir);
system ("rm $dir/Makefile");
system ("rm -f $dir/Makefile");
system ("printf 'module_directory:=$src_path_win/$dir/\ninclude \$(module_directory)/../solenv/gbuild/partial_build.mk\n' > $dir/Makefile");
}
my @external_modules = <$src_path/external/*/Makefile>;
......@@ -185,7 +185,7 @@ if ($src_path ne $build_path)
{
my $dir = basename (dirname ($module));
mkdir ("external/$dir");
system ("rm external/$dir/Makefile");
system ("rm -f external/$dir/Makefile");
system ("printf 'module_directory:=$src_path_win/external/$dir/\ninclude \$(module_directory)/../../solenv/gbuild/partial_build.mk\n' > external/$dir/Makefile");
}
}
......
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