I use yacc and lex with Visual Studio 2012 C ++ / CLI and created a custom build step for the yacc source file as shown in the image below

There are two dependencies for the output file. This is the yacc icl5kyacc.y source file and the yyparse.c template file. Every time I create a solution, a custom build step is executed even when the source files yyparse.c and icl5kyacc.y have not been changed. Here is a list of directories after assembly.
21-Sep-2012 10:19:18p 28,210 A icl5kyacc.y
17-Sep-2012 7:32:06p 9,042 A yyparse.c
22-Sep-2012 11:43:56a 38,233 A ICL5KYACC.cpp
22-Sep-2012 11:43:56a 2,160 A icl5kyacc.h
And after construction again
2> Generate icl5kyacc.cpp from icl5kyacc.y
21-Sep-2012 10:19:18p 28,210 A icl5kyacc.y
17-Sep-2012 7:32:06p 9,042 A yyparse.c
22-Sep-2012 11:45:46a 38,233 A ICL5KYACC.cpp
22-Sep-2012 11:45:46a 2,160 A icl5kyacc.h
, , ? , , % (AdditionalInputs), Studio " ". , , - , .