diff options
| author | johannes <johannes.herman@gmail.com> | 2024-02-06 12:35:13 +0100 |
|---|---|---|
| committer | johannes <johannes.herman@gmail.com> | 2024-02-06 12:35:13 +0100 |
| commit | dac46e69f6a7bfed290c7a1cf61b0fc932976d95 (patch) | |
| tree | 8b22da9aed15df27a1f6b9e792a0f8170acca0c2 /makefile | |
| parent | 0ab2c0afc6fd192f4008962ef400b92434e2dc2d (diff) | |
added make format command
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |
