feat(makefile): adds a make formatter as task runner
C++ / fmt (pull_request) Failing after 6s
C++ / build & lint (pull_request) Failing after 10s
JS/TS / fmt & lint (pull_request) Successful in 14s
Python / fmt & lint (pull_request) Successful in 29s
Python / test & nuitka build (pull_request) Failing after 1m25s
Rust / build, clippy & fmt (pull_request) Failing after 4m49s
C++ / fmt (pull_request) Failing after 6s
C++ / build & lint (pull_request) Failing after 10s
JS/TS / fmt & lint (pull_request) Successful in 14s
Python / fmt & lint (pull_request) Successful in 29s
Python / test & nuitka build (pull_request) Failing after 1m25s
Rust / build, clippy & fmt (pull_request) Failing after 4m49s
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
BUILD ?= cmake -B build -G Ninja
|
BUILD ?= cmake -B build -G Ninja
|
||||||
NONUITKA ?= cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_MODULES="plugin;shell;m3shapes"
|
NONUITKA ?= cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_MODULES="plugin;shell;m3shapes"
|
||||||
NINJA ?= ninja -C build
|
NINJA ?= ninja -C build
|
||||||
COMPILE ?= $(BUILD) && $(NINJA)
|
COMPILE ?= $(BUILD) && $(NINJA)
|
||||||
INSTALL ?= $(BUILD) && $(NINJA) && sudo ninja -C build install
|
INSTALL ?= $(BUILD) && $(NINJA) && sudo ninja -C build install
|
||||||
|
|
||||||
CPPFMT ?= find . \( -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) -not -path './build/*' -exec clang-format -i --style=file {} +
|
CPPFMT ?= find . \( -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) -not -path './build/*' -exec clang-format -i --style=file {} +
|
||||||
CPPLINT ?= run-clang-tidy -p build -j "$$(nproc)" -source-filter="^$$(pwd)/Plugins/" -header-filter=".*Plugins/.*" -removed-arg=-mno-direct-extern-access
|
CPPLINT ?= run-clang-tidy -p build -j "$$(nproc)" -source-filter="^$$(pwd)/Plugins/" -header-filter=".*Plugins/.*" -removed-arg=-mno-direct-extern-access
|
||||||
|
|
||||||
NUITKA ?= nuitka --module --include-package=zshell cli/src/zshell/ --output-dir=cli/
|
NUITKA ?= nuitka --module --include-package=zshell cli/src/zshell/ --output-dir=cli/
|
||||||
|
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
@@ -32,6 +32,7 @@ help:
|
|||||||
@echo "check-cpp runs all C++ checks"
|
@echo "check-cpp runs all C++ checks"
|
||||||
@echo "check-py runs all Python checks"
|
@echo "check-py runs all Python checks"
|
||||||
@echo "check-rs runs all Rust checks"
|
@echo "check-rs runs all Rust checks"
|
||||||
|
@echo "fmt-make formats the makefile using mbake (in case you like spaces instead of tabs)"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(BUILD)
|
$(BUILD)
|
||||||
@@ -104,3 +105,6 @@ check-py:
|
|||||||
$(MAKE) py-test
|
$(MAKE) py-test
|
||||||
$(MAKE) py-check
|
$(MAKE) py-check
|
||||||
$(MAKE) py-compile
|
$(MAKE) py-compile
|
||||||
|
|
||||||
|
fmt-make:
|
||||||
|
mbake format makefile
|
||||||
|
|||||||
Reference in New Issue
Block a user