From b4f4df07fb9efe51af1bd64a3061382a75966259 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 16 Feb 2023 11:44:38 +0000 Subject: [PATCH] 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 c7d54697ca8d83c7ad934026ee327816627d2444) --- rust/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/Makefile.am b/rust/Makefile.am index c383f83e3..11df2f880 100644 --- a/rust/Makefile.am +++ b/rust/Makefile.am @@ -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