Thanks for you.The error disappears.But the new error appears.After I set the matlab path to default and reinstall the Toolbox,the error still exist.Blow is the error message:
### Generating code into build folder: D:\modelspace\test\CTU_ISR_rappid_rtw
### Invoking Target Language Compiler on CTU_ISR.rtw
### Using System Target File: C:\MCToolbox\rappid564xl\rappid564xl\rappid564xl.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing source file CTU_ISR.c
### Writing header file CTU_ISR_private.h
### Writing header file CTU_ISR.h .
### Writing header file CTU_ISR_types.h
### Writing header file rtwtypes.h
### Writing source file rappid_main.c
### Writing source file intc_sw_vectable.c
### Writing source file intc_init.c .
### Writing header file sysclk.h
### Writing header file target.h
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model .
### Processing Template Makefile: C:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw_2013.tmf
### CTU_ISR.mk which is generated from C:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw_2013.tmf is up to date
### Building CTU_ISR: .\CTU_ISR.bat
D:\modelspace\test\CTU_ISR_rappid_rtw>set MATLAB=C:\Program Files\MATLAB\R2015b D:\modelspace\test\CTU_ISR_rappid_rtw>"C:\Program Files\MATLAB\R2015b\bin\win64\gmake" -f CTU_ISR.mk GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=1 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0 ISPROTECTINGMODEL=NOTPROTECTING
clean
RELATIVE_PATH_TO_ANCHOR is ..
==== Removing object files from build directory ====
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
gmake: *** [clean] Error 1