summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/makefile b/makefile
index 32a0198..1b516e8 100644
--- a/makefile
+++ b/makefile
@@ -11,7 +11,7 @@ CFLAGS := -Wall
LDFLAGS := -Llib
LDLIBS := -lm
-.PHONY: all clean run
+.PHONY: all clean run format
all: $(EXE)
@@ -30,4 +30,9 @@ run: $(EXE)
clean:
@$(RM) -rv $(BIN_DIR) $(OBJ_DIR)
+format:
+ clang-format -i --style=Microsoft src/*.c
+ clang-format -i --style=Microsoft inc/*.h
+
+
-include $(OBJ:.o=.d)