Skip to content

Makefile build automation utility

Zeioth edited this page Nov 11, 2023 · 6 revisions

In this section I'm gonna cover how to do use compiler.nvim to run custom commands.

Hello world

Create a Makefile in your working directory and copy/paste this:

all: hello

hello:
  echo "Hello, World"

When you open the compiler you will see the option to run it screenshot_2023-10-31_00-55-16_370533289

And this is the result screenshot_2023-10-31_00-55-22_742539119

In the same way you can run hello world, you can execute any command necessary to build your program.

Supported build automation tools

If you have any of the next files in your current working directory, they will be displayed in Compiler.nvim:

  • ./Makefile, ./CmakeLists.txt
Clone this wiki locally