I have such Makefile with a content for creating a script:
Makefile
cluster-run: make $(TARGET) --just-print >> tmp_script.sh;
And