feat: add PHONY declarations and docs target to Makefile
main
Description
This PR improves the Makefile by adding proper .PHONY declarations and a new docs target.
The .PHONY declarations ensure make properly handles targets that don't create files.
The docs target provides an easy way to view Go package documentation locally using godoc.
Changes:
Add .PHONY declaration for all non-file targets (it, run, profile, explain, graph, docs).
Add docs target that runs godoc server on port 6060 with helpful usage message.
Decisions
None.
Benefits
Prevents make from getting confused if files with target names exist.
Provides convenient documentation viewing with make docs.
Improves Makefile maintainability following best practices.
Checklist
Code follows conventional commit format.
Branch follows naming convention (<type>/<description>). Always use underscores.
Tests pass (if applicable).
Documentation updated (if applicable).
---
name: "Default Template"
about: "The default template for `lambda`."
title: "feat: add PHONY declarations and docs target to Makefile"
ref: "main"
assignees: []
labels: []
---
## Description
This PR improves the Makefile by adding proper `.PHONY` declarations and a new `docs` target.
The `.PHONY` declarations ensure make properly handles targets that don't create files.
The `docs` target provides an easy way to view Go package documentation locally using godoc.
Changes:
- Add `.PHONY` declaration for all non-file targets (`it`, `run`, `profile`, `explain`, `graph`, `docs`).
- Add `docs` target that runs godoc server on port 6060 with helpful usage message.
### Decisions
None.
## Benefits
- Prevents make from getting confused if files with target names exist.
- Provides convenient documentation viewing with `make docs`.
- Improves Makefile maintainability following best practices.
## Checklist
- [x] Code follows conventional commit format.
- [x] Branch follows naming convention (`<type>/<description>`). Always use underscores.
- [ ] Tests pass (if applicable).
- [x] Documentation updated (if applicable).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.