diff --git a/Makefile b/Makefile index 6572490..344507f 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ CC = gcc AR = ar -.PHONY: all install clean +.PHONY: all format clean .SUFFIXES: .c .o OBJS = src/core.o @@ -14,6 +14,9 @@ OBJS += src/misc/url.o src/misc/wildcard.o all: libppr.a +format: + clang-format --verbose -i `find src include -name "*.c" -or -name "*.h"` + .c.o: $(CC) -c -I include -o $@ $<