forked from lucysrausch/hoverboard-firmware-hack
13 lines
387 B
Batchfile
13 lines
387 B
Batchfile
@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%")
|
|
|
|
cd .
|
|
|
|
if "%1"=="" ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f BLDC_controller.mk all) else ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f BLDC_controller.mk %1)
|
|
@if errorlevel 1 goto error_exit
|
|
|
|
exit /B 0
|
|
|
|
:error_exit
|
|
echo The make command returned an error of %errorlevel%
|
|
An_error_occurred_during_the_call_to_make
|