An alternative to copying from a demo is to create your Makefile and config.py file from scratch. You have the freedom to generate the Makefile and/or config.py file from a configure script if you want - for an example of this see the Fresco project.
TODO: Write tutorial. See the earlier tutorial in the mean time.