chore: clean up makefiles a bit
This commit is contained in:
parent
d2afb98268
commit
9c387937ef
3 changed files with 25 additions and 7 deletions
14
Makefile
14
Makefile
|
|
@ -106,10 +106,14 @@ $(BUILD_DIR)/$(TEST_DIR)/%.c.o: $(TEST_DIR)/%.c
|
|||
.PHONY: lint
|
||||
lint:
|
||||
clang-format -n --Werror $(SRCS) $(SRCS_H) $(SRCS_H_INTERNAL)
|
||||
make -C lsm lint
|
||||
make -C landerctl lint
|
||||
|
||||
.PHONY: fmt
|
||||
fmt:
|
||||
clang-format -i $(SRCS) $(SRCS_H) $(SRCS_H_INTERNAL)
|
||||
make -C lsm fmt
|
||||
make -C landerctl fmt
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
|
|
@ -117,21 +121,21 @@ check:
|
|||
cppcheck \
|
||||
$(addprefix -I,$(INC_DIRS)) \
|
||||
--cppcheck-build-dir=$(BUILD_DIR)/cppcheck \
|
||||
--project=compile_commands.json \
|
||||
--error-exitcode=1 \
|
||||
--enable=warning,style \
|
||||
-ithirdparty/* \
|
||||
-itrie/* \
|
||||
--inline-suppr \
|
||||
--check-level=exhaustive \
|
||||
--quiet \
|
||||
-j$(shell nproc)
|
||||
-j$(shell nproc) \
|
||||
$(SRCS)
|
||||
make -C lsm check
|
||||
make -C landerctl check
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(BUILD_DIR)
|
||||
$(MAKE) -C lsm clean
|
||||
|
||||
$(MAKE) -C landerctl clean
|
||||
|
||||
.PHONY: bear
|
||||
bear: clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue