diff --git a/makefile b/makefile index ca3ab4a..419b675 100644 --- a/makefile +++ b/makefile @@ -58,6 +58,10 @@ build/%.o: src/%.c | mkbuilddir size: $(TARGET) $(SIZE) $(TARGET) +# Format with clang-format +format: $(SRCS) + clang-format -i $^ + # Clean up the build directory clean: rm -r build diff --git a/src/main.c b/src/main.c index 6aad8a5..d0c89ee 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,6 @@ #include int main(int argc, const char **argv) { - printf("Hello, World!\n"); - return 0; + printf("Hello, World!\n"); + return 0; }