CodeBlocks: How to run after building from custom Makefile <p>I have set up CodeBlocks to build from a custom Makefile. Build is working fine, but I am not able to run the code from CodeBlocks.</p> <p>To build the project in command prompt, I use simple commands <code>make</code> and to clean it is <code>make clean</code>. It generates the executable: <code>main</code> that I run by <code>./main</code></p> <p>I am trying to map this to the settings available in codeblocks which has the following values.</p> <ul> <li>Build project/target: <code>$make -f $makefile $target</code> </li> <li>Compile single file: <code>$make -f $makefile $file</code></li> <li>Clean project target: <code>$make -f $makefile clean$target</code></li> </ul> <p>How can I do the mapping and how to run the project? </p>