Skip to content

Instantly share code, notes, and snippets.

@nickjj

nickjj/Makefile

Created Feb 27, 2021
Embed
What would you like to do?
.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