Search

Displaying the commands being run by make.

Make files are used to compile multiple source files and to generate executable from the source code.
If we want to check what are the files being compiled or what commands are being executed by make, we can open the make file using an editor and look into it which in case of big makefiles can be a difficult task or use the option "--just-print" with make.



If your makefile is not named "makefile" or "Makefile" add the name of the file with "-f " option i.e.



The output Will display all the commands that the makefile will execute when make is actually executed.
Could be quite useful when you want to debug makefiles written by some one else.

Follow by Email