Skip to content

Instantly share code, notes, and snippets.

@nickjj
Created February 27, 2021 20:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nickjj/a6e4f33b4588a6e231a8b9374ce6fe58 to your computer and use it in GitHub Desktop.
Save nickjj/a6e4f33b4588a6e231a8b9374ce6fe58 to your computer and use it in GitHub Desktop.
.PHONY: help
help:
@printf "%s\n" "Useful targets:"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m make %-15s\033[0m %s\n", $$1, $$2}'
.PHONY: db-reset
db-reset: ## Reset the database
docker-compose exec web flask db reset --with-testdb
.PHONY: routes
routes: ## List available routes
docker-compose exec web flask routes
.PHONY: flask
flask: ## Execute Flask command
docker-compose exec web flask $(ARGS)
whatisphony: ## This won't print as is
@echo "This will not print because a file named 'whatisphony' exists on disk"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment