How can I implement a makefile-style algorithm in python?

Can anyone help me with this? Any help would be appreciated.


Thanks,
Sandy