ifeq ($(shell test -e '.env' && echo -n yes),yes) include .env endif Manually define…
- User
ifeq ($(shell test -e '.env' && echo -n yes),yes) include .env endif
Manually define main variables
ifndef APP_PORT override APP_PORT = 8000 endif
ifndef APP_HOST override APP_HOST = 127.0.0.1 endif
parse additional args for commands
args := (MAKECMDGOALS)) ifndef args MESSAGE = "No such command (or you pass two or many targets to ). List of possible commands: make help" else MESSAGE = "Done" endif
APPLICATION_NAME = shortener TEST = poetry run python -m pytest --verbosity=2 --showlocals --log-level=DEBUG CODE = $(APPLICATION_NAME) tests
HELP_FUN =
%help; while(<>){push@{help{2//'options'}},[3]
if/^([\w-]+)\s*:.##(?:@(\w+))?\s(.)/}; \ print":\n", map" }},"\n" for keys %help; \ - Assistant
It looks like there are syntax errors in the Makefile. Make sure that each command is properly indented with a tab character, and that there are no stray characters or symbols in the file. If you're using a Windows machine, make sure that the Makefile is saved with Unix line endings and not Windows line endings.