Makefile
Makefile is a file that contains a set of instructions for the Makefile command.
Basic Commands
Check Makefile Version
make --versionCreate a Makefile
makefileRun a Makefile
makeList Makefile Targets
make listRun 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:
./mainif you want to hide the build output, you can use the
@symbol.
build:
@go build -o main main.go
run:
@./mainLast updated on