summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-06 12:35:13 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-06 12:35:13 +0100
commitdac46e69f6a7bfed290c7a1cf61b0fc932976d95 (patch)
tree8b22da9aed15df27a1f6b9e792a0f8170acca0c2
parent0ab2c0afc6fd192f4008962ef400b92434e2dc2d (diff)
added make format command
-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)