Split *.pm-building into build stage