Although not required, it makes automake 'Makefile.am's easier to read.
---
rust/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/Makefile.am b/rust/Makefile.am
index 027097af9b..75738a0c30 100644
--- a/rust/Makefile.am
+++ b/rust/Makefile.am
@@ -117,6 +117,6 @@ clean-local:
$(CARGO) clean
$(CARGO) clean --manifest-path cargo_test/Cargo.toml
-endif
+endif HAVE_RUST
CLEANFILES += libnbd-sys/libnbd_version
--
2.41.0