blob: 376d277e060008a02bf7db9a88edad7fe7dea4f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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 \
-S --arrow-shape normal -g -n -L fr-fr $(APPS) > /tmp/$(PROJECT).dot
dot -Tpng /tmp/$(PROJECT).dot > docs/images/models.png
rm /tmp/$(PROJECT).dot
|