summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2e067d3..ecbe812 100644
--- a/Makefile
+++ b/Makefile
@@ -88,4 +88,7 @@ coverage: clean
lcov --remove coverage.info '/usr/*' --output-file coverage.info --ignore-errors unused
genhtml coverage.info --output-directory coverage
-.PHONY: all clean debug release asan test test-png gdb bench coverage
+format:
+ clang-format -i $(SRC) $(shell find include tests -name "*.h" -o -name "*.c")
+
+.PHONY: all clean debug release asan test test-png gdb bench coverage format