diff --git a/makefile b/makefile index 225ff52..5570d87 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,17 @@ -build: - gcc pomo.c -o pomo +CC=gcc +SRC=pomo.c +OUT=pomo +STYLE_BLUEPRINT=webkit +FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT) + +build: $(SRC) + $(CC) $(SRC) -o $(OUT) install: - cp ./pomo /bin/pomo + cp ./$(OUT) /bin/pomo lint: - clang-tidy pomo.c -- + clang-tidy $(SRC) -- + +format: + $(FORMATTER) $(SRC)