summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2018-08-21 15:08:42 +0200
committerLuboš Luňák <l.lunak@collabora.com>2018-08-27 13:24:42 +0200
commit1de0901d226e6851f6c75fc3a834e9a5fcaa5e98 (patch)
treec917e6ddfaf2373160d4a1a239ee40f0c5dfabf6 /autogen.sh
parent43f30952f39e4d568befff2a224418435a8c7691 (diff)
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
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 1f3bb813fbbf..8c0bb0ade4ba 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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");
}
}