GNOME Bugzilla – Bug 497237
Build system does not rebuild parser
Last modified: 2007-11-16 13:16:24 UTC
When the calctool.h header file is changed the parser needs to be rebuilt but the make system is not detecting this. Also make clean does not delete the autogenerated parser .c files. To reproduce: 1. Check out gcalctool 2. Build gcalctool 3. Change calctool.h, some files will be rebuilt but the parser will not 4. Do a make clean 5. do a 'svn status gcalctool/'. A number of .c files and a .a file are there marked as 'I' (ignore). These files should have been removed by the make clean.
The problem this causes is when the exprm_state structure or the 'v' structure is changed the parser tends to break and return 'Malformed Expression' errors due to accessing the structures in the old way.
Created attachment 99206 [details] [review] Fixes parser dependencies in gcalctool/Makefile.am Seems to do the trick...