|
1 |
| -.DEFAULT_GOAL := help |
| 1 | +include make/general/Makefile |
2 | 2 |
|
3 |
| -SUPPORTED_COMMANDS := contributors git linter |
| 3 | +SUPPORTED_COMMANDS := linter |
4 | 4 | SUPPORTS_MAKE_ARGS := $(findstring $(firstword $(MAKECMDGOALS)), $(SUPPORTED_COMMANDS))
|
5 | 5 | ifneq "$(SUPPORTS_MAKE_ARGS)" ""
|
6 | 6 | COMMAND_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
|
7 | 7 | $(eval $(COMMAND_ARGS):;@:)
|
8 | 8 | endif
|
9 | 9 |
|
10 |
| -help: |
11 |
| - @grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/' |
12 |
| - |
13 |
| -node_modules: |
14 |
| - @npm install |
15 |
| - |
16 | 10 | install: node_modules ## Installation application
|
17 | 11 |
|
18 |
| -contributors: node_modules ## Contributors |
19 |
| -ifeq ($(COMMAND_ARGS),add) |
20 |
| - @npm run contributors add |
21 |
| -else ifeq ($(COMMAND_ARGS),check) |
22 |
| - @npm run contributors check |
23 |
| -else ifeq ($(COMMAND_ARGS),generate) |
24 |
| - @npm run contributors generate |
25 |
| -else |
26 |
| - @npm run contributors |
27 |
| -endif |
28 |
| - |
29 |
| -git: node_modules ## Scripts GIT |
30 |
| -ifeq ($(COMMAND_ARGS),status) |
31 |
| - @git status |
32 |
| -else ifeq ($(COMMAND_ARGS),check) |
33 |
| - @make contributors check -i |
34 |
| - @make linter all -i |
35 |
| - @make git status -i |
36 |
| -else |
37 |
| - @echo "ARGUMENT missing" |
38 |
| - @echo "---" |
39 |
| - @echo "make git ARGUMENT" |
40 |
| - @echo "---" |
41 |
| - @echo "check: CHECK before" |
42 |
| - @echo "status: status" |
43 |
| -endif |
44 |
| - |
45 |
| -linter: node_modules ## Scripts Linter |
| 12 | +linter: node_modules ### Scripts Linter |
46 | 13 | ifeq ($(COMMAND_ARGS),all)
|
47 | 14 | @make linter readme -i
|
48 | 15 | else ifeq ($(COMMAND_ARGS),readme)
|
|
0 commit comments