37 lines
602 B
Makefile
37 lines
602 B
Makefile
BUILD ?= cmake -B build -G Ninja
|
|
INSTALL ?= $(BUILD) \
|
|
&& ninja -C build \
|
|
&& sudo ninja -C build install
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
help:
|
|
@echo "build cmake builds into build directory"
|
|
|
|
build:
|
|
$(BUILD)
|
|
|
|
install:
|
|
$(INSTALL)
|
|
|
|
# TODO: Anything below is not ready
|
|
|
|
cpp-fmt:
|
|
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) \
|
|
-not -path './build/*' \
|
|
-exec clang-format -i --style=file {} +
|
|
|
|
# cpp-lint needs adjustments in ci and here
|
|
|
|
py-fmt:
|
|
ruff format --check
|
|
|
|
py-lint:
|
|
ruff check ./cli
|
|
|
|
py-check:
|
|
basedpyright
|
|
|
|
py-test:
|
|
python -m pytest ./cli/src/tests/ -v
|