title: How to do Makefile dependencies for python code
body: <p>I have a bunch of C files that are generated by a collection of python programs that have a number of shared python modules and I need to account for this in my make system.</p>
  
  <p>It is easy enough to enumerate which python program need to be run to generate each C file. What I can't find a good solution for is determining which other python files those programs depend on. I need this so make will know what needs regenerating if one of the shared python files changes.</p>
  
  <p>Is there a good system for producing make style dependency rules from a collection of python sources?</p>