summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-01 18:47:59 +0200
committerÉtienne Loks <etienne@peacefrogs.net>2019-08-01 18:47:59 +0200
commit98a3f7225b8b1265b3255a7e104545ea94e05ab4 (patch)
tree2b989210904c577ea4c241c1f850674adea1f8d7 /Makefile
parent108b5514fe795e3bbf4c76245047f5ea054c3d20 (diff)
downloadComm-on-net-98a3f7225b8b1265b3255a7e104545ea94e05ab4.tar.bz2
Comm-on-net-98a3f7225b8b1265b3255a7e104545ea94e05ab4.zip
Translations - basic makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
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