Skip to content

Commit c59c36a

Browse files
committed
fix(makefile): commands with arguments
1 parent f982234 commit c59c36a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ include make/general/Makefile
33
SUPPORTED_COMMANDS := linter
44
SUPPORTS_MAKE_ARGS := $(findstring $(firstword $(MAKECMDGOALS)), $(SUPPORTED_COMMANDS))
55
ifneq "$(SUPPORTS_MAKE_ARGS)" ""
6-
COMMAND_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
7-
$(eval $(COMMAND_ARGS):;@:)
6+
COMMANDS_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
7+
$(eval $(COMMANDS_ARGS):;@:)
88
endif
99

1010
install: node_modules ## Installation application
1111

1212
linter: node_modules ### Scripts Linter
13-
ifeq ($(COMMAND_ARGS),all)
13+
ifeq ($(COMMANDS_ARGS),all)
1414
@make linter readme -i
15-
else ifeq ($(COMMAND_ARGS),readme)
15+
else ifeq ($(COMMANDS_ARGS),readme)
1616
@npm run linter-markdown README.md
1717
else
1818
@printf "${MISSING_ARGUMENTS}" "linter"

0 commit comments

Comments
 (0)