+copy wxwidgets.css out\html 2>&1 >NUL\r
+\r
+REM set cfgfile variable to the right doxyfile to use,\r
+REM using MS broken batch scripting\r
+setlocal enableextensions\r
+set arg=%1\r
+if "%arg%" EQU "" set cfgfile=Doxyfile_all\r
+if "%arg%" NEQ "" set cfgfile=Doxyfile_%1\r
+\r
+pushd ..\..\r
+set WXWIDGETS=%CD%\r
+popd\r
+\r
+REM\r
+REM NOW RUN DOXYGEN\r
+REM\r
+REM NB: we do this _after_ copying the required files to the output folders\r
+REM otherwise when generating the CHM file with Doxygen, those files are\r
+REM not included!\r
+REM\r
+set PATH=%PATH%;%HHC_PATH%\r
+doxygen %cfgfile%\r