anchor.diff:  )
   
   :: Builds LZ4
  -cd ..\..
  +cd %BASEDIR%3rdparty
   echo Compiling LZ4 library ...
   rd /s /q  lz4 >nul 2>&1
   del /f /q lz4 >nul 2>&1
  
positive.code:     exit /b
    )
  ) else (
    cd lz4\lib
    qmake -o makefile.liblz4
    %MAKE% -f makefile.liblz4 clean
    %MAKE% -f makefile.liblz4
    cd ..\..
  )
  cd ..
  
  cd src
  if exist Makefile ( %MAKE% -k distclean >nul 2>&1 )
  qmake %OPT% target.path='%TFDIR%/bin' header.path='%TFDIR%/include' %USE_GUI%
  cd ..
  cd tools
  if exist Makefile ( %MAKE% -k distclean >nul 2>&1 )
  qmake -recursive %OPT% target.path='%TFDIR%/bin' header.path='%TFDIR%/include' datadir='%TFDIR%'
  %MAKE% qmake
  cd ..
  
  echo;
  echo First, run "%MAKE% install" in src directory.
  
negative.code: ::
  :: Generates tfenv.bat
  ::
  set BASEDIR=%~dp0
  for %%I in (qmake.exe) do if exist %%~$path:I set QMAKE=%%~$path:I
  for %%I in (cmake.exe) do if exist %%~$path:I set CMAKE=%%~$path:I
  for %%I in (cl.exe)    do if exist %%~$path:I set MSCOMPILER=%%~$path:I
  