Add rule to generate memprof script.