Add dependency to gentable.py

With this commit, a change to gentable.py will trigger
the regeneration of cpp code for each table.