Archived
1
0

add format target

This commit is contained in:
Jeff Becker 2018-05-06 08:10:01 -04:00
parent 5c10ecb2e9
commit c503cddd85
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -20,6 +20,8 @@ TOOL_PATH := $(REPO)/tools
TOOL_SRC := $(wildcard $(TOOL_PATH)/*.cpp) TOOL_SRC := $(wildcard $(TOOL_PATH)/*.cpp)
TOOLS := $(TOOL_SRC:.cpp=) TOOLS := $(TOOL_SRC:.cpp=)
SRCS = $(NNTPCHAN_SRC) $(MUSTACHE_SRC) $(TOOL_SRC)
OBJ := $(NNTPCHAN_OBJ) OBJ := $(NNTPCHAN_OBJ)
OBJ += $(MUSTACHE_OBJ) OBJ += $(MUSTACHE_OBJ)
@ -51,6 +53,9 @@ EXE = $(REPO)/nntpd
all: build all: build
format:
clang-format -i $(SRCS)
build: $(EXE) tools build: $(EXE) tools
$(MUSTACHE_LIB): $(MUSTACHE_OBJ) $(MUSTACHE_LIB): $(MUSTACHE_OBJ)