Dist/Tizen: Wipe-out the build directory before configuring the project
authorWook Song <wook16.song@samsung.com>
Wed, 31 Jan 2024 11:58:58 +0000 (20:58 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 1 Feb 2024 04:52:37 +0000 (13:52 +0900)
This patch adds the omitted wiping-out of the build directory before the
configuration of this project.

Signed-off-by: Wook Song <wook16.song@samsung.com>
packaging/machine-learning-agent.spec

index 1224d638b28614f3c3190e813a51b2fa12cdfa96..f0878dbb9e7e3328b38c3f21f8287b07aea92ce9 100644 (file)
@@ -173,8 +173,7 @@ CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-Wp,-D_FORTIFY_SOURCE=[1-9]||g"`
 %define enable_test_coverage -Db_coverage=false
 %endif # unit_test
 
-mkdir -p %{builddir}
-
+rm -rf %{builddir}
 meson --buildtype=plain --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --libdir=%{_libdir} \
        --bindir=%{_bindir} --includedir=%{_includedir} \
        %{enable_test} %{install_test} %{enable_test_coverage} %{enable_gcov} \