From c503cddd8578a8fce7027431b30c777dfb22f4a9 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 6 May 2018 08:10:01 -0400 Subject: [PATCH] add format target --- contrib/backends/nntpchan-daemon/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/backends/nntpchan-daemon/Makefile b/contrib/backends/nntpchan-daemon/Makefile index f20d477..4e6632f 100644 --- a/contrib/backends/nntpchan-daemon/Makefile +++ b/contrib/backends/nntpchan-daemon/Makefile @@ -20,6 +20,8 @@ TOOL_PATH := $(REPO)/tools TOOL_SRC := $(wildcard $(TOOL_PATH)/*.cpp) TOOLS := $(TOOL_SRC:.cpp=) +SRCS = $(NNTPCHAN_SRC) $(MUSTACHE_SRC) $(TOOL_SRC) + OBJ := $(NNTPCHAN_OBJ) OBJ += $(MUSTACHE_OBJ) @@ -51,6 +53,9 @@ EXE = $(REPO)/nntpd all: build +format: + clang-format -i $(SRCS) + build: $(EXE) tools $(MUSTACHE_LIB): $(MUSTACHE_OBJ)