@echo off\r
if not exist Nmakefile goto wrongdir\r
\r
-cl 2>&1 | find "x86" >nul\r
+call cl 2>&1 | find "x86" >nul\r
if not errorlevel 1 goto cl32\r
\r
-cl 2>&1 | find "x64" >nul\r
+call cl 2>&1 | find "x64" >nul\r
if not errorlevel 1 goto cl64\r
\r
goto nocl\r
goto platformdefined\r
\r
:nocl\r
-echo "Unable to detect cl.exe target platform."\r
-goto fail\r
+echo Unable to detect cl.exe target platform.\r
+echo Make sure you're running within the Visual Studio or Windows SDK environment.\r
+goto cleanup\r
\r
:platformdefined\r
\r