rust: Don't fail 'make distclean' if cargo clean fails

It fails when run twice with:

  ../run cargo clean
  error: could not find `Cargo.toml` in `/home/rjones/d/libguestfs/rust` or any parent directory

As this is an optional step don't fail here.

(cherry picked from commit c7d54697ca)
This commit is contained in:
Richard W.M. Jones
2023-02-16 11:44:38 +00:00
parent ecd0395a7c
commit b4f4df07fb

View File

@@ -36,7 +36,7 @@ all: $(srcdir)/src/lib.rs
$(top_builddir)/run $(CARGO) build --release
distclean-local:
$(top_builddir)/run $(CARGO) clean
-$(top_builddir)/run $(CARGO) clean
TESTS = run-bindtests run-tests