write a script to generate a Makefile for existing problem
 compete Preface, use the ad-hoc to solve this problem