Makefile
| @@ -14,4 +14,4 @@ goal2: | |||
| 14 | 14 | ## help: This help message | |
| 15 | 15 | help: Makefile | |
| 16 | 16 | @echo "Available goals:" | |
| 17 | - | @sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /' | |
| 17 | + | @sed -n 's/^##/ /p' $< | column -t -s ':' | |
Makefile
| @@ -1,5 +1,5 @@ | |||
| 1 | 1 | .DEFAULT_GOAL := help | |
| 2 | - | .PHONY: goal1 goal2 | |
| 2 | + | .PHONY: goal1 goal2 help | |
| 3 | 3 | ||
| 4 | 4 | ###################### | |
| 5 | 5 | ||
.editorconfig (文件已删除)
| @@ -1,10 +0,0 @@ | |||
| 1 | - | [*] | |
| 2 | - | charset = utf-8 | |
| 3 | - | end_of_line = lf | |
| 4 | - | insert_final_newline = true | |
| 5 | - | indent_style = space | |
| 6 | - | indent_size = 4 | |
| 7 | - | trim_trailing_whitespace = true | |
| 8 | - | ||
| 9 | - | [Makefile] | |
| 10 | - | indent_style = tab | |
.editorconfig(文件已创建)
| @@ -0,0 +1,10 @@ | |||
| 1 | + | [*] | |
| 2 | + | charset = utf-8 | |
| 3 | + | end_of_line = lf | |
| 4 | + | insert_final_newline = true | |
| 5 | + | indent_style = space | |
| 6 | + | indent_size = 4 | |
| 7 | + | trim_trailing_whitespace = true | |
| 8 | + | ||
| 9 | + | [Makefile] | |
| 10 | + | indent_style = tab | |
Makefile
| @@ -4,10 +4,10 @@ | |||
| 4 | 4 | ###################### | |
| 5 | 5 | ||
| 6 | 6 | goal1: | |
| 7 | - | @echo "This is goal1" | |
| 7 | + | @echo "This is goal1" | |
| 8 | 8 | ||
| 9 | 9 | goal2: | |
| 10 | - | @echo "This is goal2" | |
| 10 | + | @echo "This is goal2" | |
| 11 | 11 | ||
| 12 | 12 | ###################### | |
| 13 | 13 | ||
Makefile(文件已创建)
| @@ -0,0 +1,17 @@ | |||
| 1 | + | .DEFAULT_GOAL := help | |
| 2 | + | .PHONY: goal1 goal2 | |
| 3 | + | ||
| 4 | + | ###################### | |
| 5 | + | ||
| 6 | + | goal1: | |
| 7 | + | @echo "This is goal1" | |
| 8 | + | ||
| 9 | + | goal2: | |
| 10 | + | @echo "This is goal2" | |
| 11 | + | ||
| 12 | + | ###################### | |
| 13 | + | ||
| 14 | + | ## help: This help message | |
| 15 | + | help: Makefile | |
| 16 | + | @echo "Available goals:" | |
| 17 | + | @sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /' | |