Generate *-main.php