Manufacturing prefabricated houses