Files
odfstudio/rust_uno/CustomTarget_cargo.mk
Michael Weghorn 44c4acdc3b rust_uno: Don't delete Cargo.lock on clean
Since

    commit 64510d3c8e
    Date:   Mon Feb 2 13:08:15 2026 +0100

        rust_uno : Cargo.lock must be in the git repository

, Cargo.lock is under version control and no longer
generated during the build.

Therefore, also no longer delete it on

    make rust_uno.clean

(Mentioned also as a problem by Christian Lohmaier
in the Gerrit change for the above commit, see [1].)

[1] https://gerrit.libreoffice.org/c/core/+/198541/comments/3ca5a9a2_4be61700

Change-Id: I6583e1ba246b8f73f12f0ee72d1b37eb6ba874f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208781
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-29 16:27:12 +02:00

28 lines
1.1 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_CustomTarget_CustomTarget,rust_uno/cargo))
.PHONY: $(call gb_CustomTarget_get_target,rust_uno/cargo)
$(call gb_CustomTarget_get_target,rust_uno/cargo): \
$(call gb_Library_get_target,rust_uno-cpp) \
$(gb_CustomTarget_workdir)/rust_uno/rustmaker/cpp
cd $(SRCDIR)/rust_uno && cargo build $(if $(verbose),--verbose,) --release
#TODO: Add to the general pattern rule from solenv/gbuild/CustomTarget.mk, instead of having to
# repeat its recipe here:
$(call gb_CustomTarget_get_clean_target,rust_uno/cargo):
$(call gb_Output_announce,rust_uno/cargo,$(false),CUS,3)
$(call gb_Helper_abbreviate_dirs,\
rm -rf $(gb_CustomTarget_workdir)/rust_uno/cargo && \
rm -f $(call gb_CustomTarget_get_target,rust_uno/cargo))
rm -fr $(SRCDIR)/rust_uno/target
# vim: set noet sw=4 ts=4: