Skip to content

Commit dc0eb0f

Browse files
authored
Enhancement: Add Makefile
Closes GH-621.
1 parent d31e187 commit dc0eb0f

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ charset = utf-8
88
indent_size = 2
99
indent_style = space
1010
trim_trailing_whitespace = true
11+
12+
[Makefile]
13+
charset = utf-8
14+
indent_size = 4
15+
indent_style = tab
16+
trim_trailing_whitespace = true

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ about what you're working on, you can contact us via the
6363
- Run
6464

6565
```
66-
php tests/run-tests.php -q --show-diff
66+
make tests
6767
```
6868

6969
to check your change doesn't break other features.
@@ -118,7 +118,7 @@ Having said that, here are the organizational rules:
118118
5. Test your changes before committing them. We mean it. Really. To do so use
119119

120120
```
121-
php tests/run-tests.php -q --show-diff
121+
make tests
122122
```
123123

124124
6. Use reasonable commit messages.

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.PHONY: help
2+
help: ## Displays this list of targets with descriptions
3+
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
4+
5+
.PHONY: tests
6+
tests: ## Runs tests
7+
php tests/run-tests.php -j3 -q

0 commit comments

Comments
 (0)