diff --git a/deps/buildcore/base.mk b/deps/buildcore/base.mk index 839510cb..ff56f632 100644 --- a/deps/buildcore/base.mk +++ b/deps/buildcore/base.mk @@ -44,6 +44,9 @@ ifdef BC_VAR_USE_DOCKER_DEVENV exit 1 endif endif + ifndef BC_VAR_DEVENV_ROOT + BC_VAR_DEVENV_ROOT="." + endif else BC_CMD_PY3=${BC_CMD_HOST_PY3} endif @@ -90,7 +93,7 @@ purge: ${BC_CMD_RM_RF} compile_commands.json .PHONY: test test: build - ${BC_CMD_ENVRUN} ${BC_CMD_PY3} -m mypy ${BC_VAR_SCRIPTS} + ${BC_CMD_ENVRUN} mypy ${BC_VAR_SCRIPTS} ${BC_CMD_CMAKE_BUILD} ${BC_VAR_BUILD_PATH} test .PHONY: test-verbose test-verbose: build @@ -102,7 +105,7 @@ test-rerun-verbose: build ifdef BC_VAR_USE_DOCKER_DEVENV .PHONY: devenv-image devenv-image: - docker build . -t ${BC_VAR_DEVENV_IMAGE} + docker build ${BC_VAR_DEVENV_ROOT} -t ${BC_VAR_DEVENV_IMAGE} .PHONY: devenv-create devenv-create: docker run -d \