Ostatnio aktywny 1773239724

Пример для использования в проектах

anthony's Avatar anthony zrewidował ten Gist 1773239723. Przejdź do rewizji

1 file changed, 1 insertion, 1 deletion

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 ':'

anthony's Avatar anthony zrewidował ten Gist 1773235931. Przejdź do rewizji

1 file changed, 1 insertion, 1 deletion

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

anthony's Avatar anthony zrewidował ten Gist 1773235894. Przejdź do rewizji

1 file changed, 10 deletions

.editorconfig (usunięto plik)

@@ -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

anthony's Avatar anthony zrewidował ten Gist 1773235832. Przejdź do rewizji

2 files changed, 12 insertions, 2 deletions

.editorconfig(stworzono plik)

@@ -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

anthony's Avatar anthony zrewidował ten Gist 1773235731. Przejdź do rewizji

1 file changed, 17 insertions

Makefile(stworzono plik)

@@ -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/^/ /'
Nowsze Starsze