>>374
漏れなら Makefile でこうする。

hoge.mot: foo.mot bar.mot baz.mot
    perl -e "..." foo.mot bar.mot baz.mot > $@