feat: add PHONY declarations and docs target to Makefile #9
Reference in New Issue
Block a user
Delete Branch "feat/makefile-improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
name, about, title, ref, assignees, labels
Description
This PR improves the Makefile by adding proper
.PHONYdeclarations and a newdocstarget.The
.PHONYdeclarations ensure make properly handles targets that don't create files.The
docstarget provides an easy way to view Go package documentation locally using godoc.Changes:
.PHONYdeclaration for all non-file targets (it,run,profile,explain,graph,docs).docstarget that runs godoc server on port 6060 with helpful usage message.Decisions
None.
Benefits
make docs.Checklist
<type>/<description>). Always use underscores.