aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 883e208..1ef292e 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ TEST_SRC=test/fm_draw_entries.c
TEST_OBJ=dir.o mem.o err.o log.o
TEST_BIN=fm_draw_entries
-.PHONY: all test clean
+.PHONY: all test clean format
all: $(TARGET)
@@ -40,3 +40,6 @@ analyze:
clean:
rm -f $(OBJS) $(TARGET)
rm -f ./asan*
+
+format:
+ clang-format -i $(SRCS)