Commit 766b33f
authored
Add help target for
Uses a Make trick to add a help target to the Makefile that iterates
targets with basic docstrings that are extracted from the line where the
target is defined behind a double-hash like `##`:
help: ## Print this message
Invocation:
$ make help
help Print this message
lint Run linter (standardrb)
test Run test suite (Rspec)
type-check Run type check with Steep
We also make `help` the default invocation so running `make` with
nothing else will print the same thing:
$ make
help Print this message
lint Run linter (standardrb)
test Run test suite (Rspec)
type-check Run type check with SteepMakefile that iterates targets with basic docstring (#19)1 parent 0579a72 commit 766b33f
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
1 | 9 | | |
2 | | - | |
| 10 | + | |
3 | 11 | | |
4 | 12 | | |
5 | 13 | | |
| |||
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
24 | | - | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | | - | |
| 35 | + | |
0 commit comments