Makefile: simplify by using SCRIPT_{PERL,SH}_GEN macros