@@ -29,6 +29,7 @@ PATH := $(PATH):$(GOBIN)
2929PYTHON ?= $(shell command -v python3 || command -v python)
3030PYTEST ?= $(PYTHON ) -X dev -m pytest -Walways
3131PYTESTOPTS ?=
32+ CMAKE_BUILD_TYPE ?= Debug
3233CMAKE_CXX_STANDARD ?= 20
3334OPTREE_CXX_WERROR ?= ON
3435_GLIBCXX_USE_CXX11_ABI ?= 1
@@ -198,7 +199,7 @@ cmake-configure: cmake-install
198199 cmake --version
199200 cmake -S . -B cmake-build-debug \
200201 --fresh \
201- -DCMAKE_BUILD_TYPE=Debug \
202+ -DCMAKE_BUILD_TYPE=" $( CMAKE_BUILD_TYPE ) " \
202203 -DCMAKE_CXX_STANDARD=" $( CMAKE_CXX_STANDARD) " \
203204 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
204205 -DPython_EXECUTABLE=" $( PYTHON) " \
@@ -233,21 +234,21 @@ addlicense: addlicense-install
233234
234235.PHONY : docstyle
235236docstyle : docs-install
236- make -C docs clean || true
237- $(PYTHON ) -m doc8 docs && make -C docs html SPHINXOPTS=" -W"
237+ $( MAKE ) -C docs clean || true
238+ $(PYTHON ) -m doc8 docs && $( MAKE ) -C docs html SPHINXOPTS=" -W"
238239
239240.PHONY : docs
240241docs : docs-install
241242 $(PYTHON ) -m sphinx_autobuild --watch $(PROJECT_PATH ) --open-browser docs/source docs/build
242243
243244.PHONY : spelling
244245spelling : docs-install
245- make -C docs clean || true
246- make -C docs spelling SPHINXOPTS=" -W"
246+ $( MAKE ) -C docs clean || true
247+ $( MAKE ) -C docs spelling SPHINXOPTS=" -W"
247248
248249.PHONY : clean-docs
249250clean-docs :
250- make -C docs clean || true
251+ $( MAKE ) -C docs clean || true
251252
252253# Utility Functions
253254
0 commit comments