I’m building C++ raspberry Pi project with cross compiler by using GNU Make build system. By accident I have deleted Makefile. How to generate new one?
There is no special command to regenerate a Makefile. It is a part of the project, and deleting it is similar to deleting any other project file. Our best advice would be to create a new similar project from scratch, and try to copy the accidentally deleted files from it, although they may need some adjustment.