My problem: in a Makefile which I use in both the MSYS and the MSYS2 environment I know a path, PYTHON_ROOT_DIR, which shall be used at compilation time in a C++ program. Problem is PYTHON_ROOT_DIR is in the Makefile known as posix style path such as /mingw64/bin
, where in the C++ program it shall have a form like "C:\\prog64\\msys64\\mingw64\\bin"
. Additional challenge is that depending on a configuration variable PYTHONMAJOR the path shall be wide characters or normal characters.
My question: how do I solve this in the Makefile without a need to install additional programs/scripts in the msys or msys2 environments?
cmd
prompt opens a new process that does not quit. Changing it tocmd /c echo ...
may yield better results. – Slipknot