diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0b7601a --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +PROJECT=commonnet +APPS="commorganization" "commcrawler" +PYTHON=python3 + +help: ## display this help + @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST) + +makemessages: ## make messages for translation + for DIR in $(APPS); do \ + cd $(CURDIR)/$$DIR; \ + $(PYTHON) ../manage.py makemessages --all; \ + done + +compilemessages: ## compile messages for translation + for DIR in $(APPS); do \ + cd $(CURDIR)/$$DIR; \ + $(PYTHON) ../manage.py compilemessages ; \ + done + +run: ## run test server + $(PYTHON) manage.py runserver 0.0.0.0:8000 + +generate_graphs: ## generate graph model for documentation + $(PYTHON) manage.py graph_models -g -n -L fr-fr $(APPS) > /tmp/$(PROJECT).dot + dot -Tpng /tmp/$(PROJECT).dot > docs/images/models.png + rm /tmp/$(PROJECT).dot
\ No newline at end of file |