[PATCH v3 3/4] Generate makefile file lists from a script