Generate makefile "run" and "wave" targets