3 ms·
${BINARY}: main.go go build $< -o $@ this way, make will know to re-build the binary only if the source code has changed.
by Annatar 10y ago
${BINARY}: main.go
go build $< -o $@
this way, make will know to re-build the binary only if the source code has changed.