.DEFAULT_GOAL = default
SCRIPT = contrib/scripts/make_scripts.sh

## @ env
.PHONY: env
env: ## creates a .env file
	@./${SCRIPT} make_env_file

## @ task
.PHONY: check run shell_plus clear_migrations show_migrations migrations migrate elements
check: ## same as  manage.py check
	@./${SCRIPT} check

run: ## same as  manage.py run server
	@./${SCRIPT} run

shell_plus: ## same as .manage.py shell_plus
	@./${SCRIPT} shell_plus

clear_migrations: ## same as  manage.py showmigrations
	@./${SCRIPT} clear_migrations

show_migrations: ## same as  manage.py showmigrations
	@./${SCRIPT} show_migrations

migrations: ## same as  manage.py makemigrations
	@./${SCRIPT} migrations

migrate: ## same as  manage.py migrate
	@./${SCRIPT} migrate

elements: ## create initial app elements
	@./${SCRIPT} elements

## @ help
.PHONY: help
help: ## display all make commands
	@./${SCRIPT} help $(MAKEFILE_LIST)

default: help