summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2023-07-08 22:39:21 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2023-07-10 19:53:57 +0000
commit5a72605339cbb275277be76d1259589137d5db6b (patch)
tree5cd1218870a9eda7eb3337a0a0819ce452312a04
parent84feb345eaf2a73abe4d1f9d2155edc058a8e570 (diff)
downloadqlprint-5a72605339cbb275277be76d1259589137d5db6b.tar.gz
qlprint-5a72605339cbb275277be76d1259589137d5db6b.tar.xz
qlprint-5a72605339cbb275277be76d1259589137d5db6b.zip
add `make fixstyle`
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 767c268..ba6711a 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,9 @@ build/qlprint: $(OBJS)
$(OBJS): $(wildcard include/*) Makefile
-.PHONY: clean
+.PHONY: clean fixstyle
clean:
-rm -f build/*
+fixstyle:
+ find include/ src/ -regex '.*\.[ch]' -print0 | xargs -0 -n 1 env VERSION_CONTROL=never indent --linux-style -l100