I have a Makefile which requires an output path to be set.
Right now I use
nmake /nologo /f Makefile outdir=%OUTDIR% LANGID=%1 ISO=%2
but this doesn't work if the output path contains spaces (%OUTPUT% does not contain quotes).
Additionally there seems to be a bug in the command line argument parser of nmake, so that
nmake /nologo /f Makefile outdir="%OUTDIR%" LANGID=%1 ISO=%2
and
nmake /nologo /f Makefile "outdir=%OUTDIR%" LANGID=%1 ISO=%2
also don't work. In these cases outdir will be set to [outdir]" LANGID=[VALUE1] ISO=[VALUE2] (values I provided on cli in brackets) and LANGID and ISO are not recognized at all.
Right now I'm using the (ugly) workaround (note that there is only on doublequote)
nmake /nologo /f Makefile LANGID=%1 ISO=%2 outdir="%OUTDIR%
however, this only works if only one command line argument has spaces.
How to pass paths to nmake properly so that those also work in case they have a space inside?