Let the script to generate the sources also open the resulting files.
Make all generated files, even if they're not used by the make file.
Create necessary directories before generating files.
Added an example for gnerating OpenSCAD files.