summaryrefslogtreecommitdiff
path: root/Makefile.example
diff options
context:
space:
mode:
authorÉtienne Loks <etienne@peacefrogs.net>2019-07-17 10:42:26 +0200
committerÉtienne Loks <etienne@peacefrogs.net>2019-07-17 10:42:26 +0200
commit68093c0cfa09735f4c6a9b7de0346ac3282730ee (patch)
treeaf31ab0e4bd4c589e86ec866000c3bd18700630b /Makefile.example
downloadishtar-pergamon-68093c0cfa09735f4c6a9b7de0346ac3282730ee.tar.bz2
ishtar-pergamon-68093c0cfa09735f4c6a9b7de0346ac3282730ee.zip
Initial commit
Diffstat (limited to 'Makefile.example')
-rw-r--r--Makefile.example47
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefile.example b/Makefile.example
new file mode 100644
index 0000000..2d14495
--- /dev/null
+++ b/Makefile.example
@@ -0,0 +1,47 @@
+SHELL := /bin/bash
+
+PYTHON=python3
+
+
+help:
+ # Actions available:
+ # * clean: remove temporary files
+ # * test: launch tests
+ # * soft_test: launch tests without db reinitialization
+ # * run: run local test server (port 9000)
+ # * shell: launch a python shell with project context preloaded
+ # * makemessages: create messages to be translated
+ # * compilemessages: compile messages to be translated
+
+clean:
+ -rm -rf *~*
+ -find . -name '*.pyc' -exec rm {} \;
+ -find . -name '.*.swp' -exec rm {} \;
+ -find . -name '__pycache__' -exec rm -rf {} \; 2> /dev/null
+ -rm -rf dist ishtar.egg-info
+
+test: clean
+ $(PYTHON) manage.py test
+
+soft_test: clean
+ $(PYTHON) manage.py test -k
+
+migrations:
+ $(PYTHON) manage.py makemigrations
+
+migrate:
+ $(PYTHON) manage.py migrate
+
+shell:
+ $(PYTHON) manage.py shell
+
+run:
+ $(PYTHON) manage.py runserver 0.0.0.0:9000
+
+makemessages:
+ $(PYTHON) manage.py makemessages
+
+compilemessages:
+ $(PYTHON) manage.py compilemessages
+
+