add format target
This commit is contained in:
parent
5c10ecb2e9
commit
c503cddd85
@ -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)
|
||||||
|
Reference in New Issue
Block a user