expand toc script + makefile