Commit b66a151
committed
Clarify make usage slightly
I noticed that the `make help` target had some ANSI escape sequences
that didn't seem to do anything:
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"}
Those escape sequences at the end mean "change the color to blue, then
change it back to normal".
I've seen this pattern copy-pasted around the web for a while, so I was
curious to find what it was originally. I did some historical
spelunking. The earliest example I can find that closely matches this
help target is this:
https://www.thapaliya.com/en/writings/well-documented-makefiles/
In this version, there used to be a `<target>` inside the color
sequences. I can see why that might be helpful. Otherwise, why have the
first line that prints make at all?1 parent 70aee7b commit b66a151
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
0 commit comments