[PATCH datacenter-manager 1/2] add `make tidy` target

Lukas Wagner
2026-03-25T13:44:19Z

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---
Makefile | 6 ++++++
ui/Makefile | 4 ++++
2 files changed, 10 insertions(+)

diff --git a/Makefile b/Makefile
index 940a2e7c..e1b64e4b 100644
--- a/Makefile
+++ b/Makefile
@@ -160,3 +160,9 @@ dsc-ui: $(UI_DIR)

test:
$(CARGO) test $(tests) $(CARGO_BUILD_ARGS)
+
+.PHONY: tidy
+tidy:
+ $(CARGO) fmt
+ $(MAKE) -C $(UI_DIR) tidy
+
diff --git a/ui/Makefile b/ui/Makefile
index 0bab9523..403f6d55 100644
--- a/ui/Makefile
+++ b/ui/Makefile
@@ -128,3 +128,7 @@ clean:
.PHONY: dinstall
dinstall: deb
dpkg -i $(DEB)
+
+.PHONY: tidy
+tidy:
+ $(CARGO) fmt
--
2.47.3