From 9c29e3201db0cfde16fa4d419eb1c6140bae363d Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Fri, 23 Oct 2026 03:09:34 +0200 Subject: [PATCH] feat(makefile): makefile build & install + progress on cpp and py --- makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..c7d3ce6 --- /dev/null +++ b/makefile @@ -0,0 +1,36 @@ +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