Skip to Content
🎉 Wiki 1.0.0 is finally here!.
Makefile

Makefile

Makefile is a file that contains a set of instructions for the Makefile command.

Basic Commands

Check Makefile Version

make --version

Create a Makefile

makefile

Run a Makefile

make

List Makefile Targets

make list

Run a Makefile Target

make <target>

Run a Makefile Target with a Variable and a Value

make <target> <variable>=<value>

Makefile of a Go Application

build: go build -o main main.go run: ./main

if you want to hide the build output, you can use the @ symbol.

build: @go build -o main main.go run: @./main
Last updated on