summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Lamprecht <t.lamprecht@proxmox.com>2025-06-16 22:27:20 +0200
committerThomas Lamprecht <t.lamprecht@proxmox.com>2025-06-16 22:37:35 +0200
commit33aab51365bffc21b840c121a7673c9a2a30921a (patch)
tree326f6507a5d6491026c71ac2e5e60e8c889650eb /Makefile
parent7af377c9024aa47f337e374317df5d77cb85bdfd (diff)
buildsys: add top-level make tidy target
See pve-common's commit 5ae1f2e ("buildsys: add tidy make target") for details about the chosen xargs parameters. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ac1f823..8a62f35 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,10 @@ DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
all: deb
+.PHONY: tidy
+tidy:
+ git ls-files ':*.p[ml]'| xargs -n4 -P0 proxmox-perltidy
+
.PHONY: dinstall
dinstall: deb
dpkg -i $(DEBS)