Execute Makefile in Linux: Step-by-Step Guide
To execute a makefile in Linux, the method is to input the following command in the terminal:
make
This will execute the rules and commands defined in the makefile and compile and link the program. If the makefile’s filename is not the default “Makefile”, you can use the following command to specify the filename:
make -f your_makefile_name
Furthermore, you can use the following command to remove the generated target files and executable files:
make clean