[pve-devel] [PATCH manager 1/2] buildsys: add target for auto-formatting bin/ scripts

Christoph Heiss c.heiss at proxmox.com
Mon Jul 7 13:01:36 CEST 2025


Much in the same way as the top-level target.

Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
 Makefile     | 1 +
 bin/Makefile | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index b05d5e129..eb1425222 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ all: $(SUBDIRS)
 .PHONY: tidy
 tidy:
 	git ls-files ':*.p[ml]'| xargs -n4 -P0 proxmox-perltidy
+	$(MAKE) -C bin tidy
 
 .PHONY: check
 check: bin test www
diff --git a/bin/Makefile b/bin/Makefile
index caed0af4b..3931804b1 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -81,6 +81,10 @@ pveversion.1.pod: pveversion
 pveupgrade.1.pod: pveupgrade
 pvereport.1.pod: pvereport
 
+.PHONY: tidy
+tidy:
+	echo $(SCRIPTS) $(HELPERS) | xargs -n4 -P0 proxmox-perltidy
+
 .PHONY: check
 check: $(addsuffix .service-api-verified, $(SERVICES)) $(addsuffix .api-verified, $(CLITOOLS))
 	rm -f *.service-api-verified *.api-verified
-- 
2.49.0





More information about the pve-devel mailing list