summaryrefslogtreecommitdiff
path: root/Makefile.example
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-05-05 13:03:09 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-05-05 13:05:06 +0200
commit3c34bd06079b29d7af91ec15ad912e1faf60ecbb (patch)
tree333db30d0b6bbb112d77c32ca1b878c8f70ee69a /Makefile.example
parentbdc9cdab0d5e314b5d1a33a2d87fca22138d649d (diff)
downloadIshtar-3c34bd06079b29d7af91ec15ad912e1faf60ecbb.tar.bz2
Ishtar-3c34bd06079b29d7af91ec15ad912e1faf60ecbb.zip
Imports: manage importation interface, error file
Diffstat (limited to 'Makefile.example')
-rw-r--r--Makefile.example18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile.example b/Makefile.example
index 7d37d6bc3..82f2a42e3 100644
--- a/Makefile.example
+++ b/Makefile.example
@@ -16,6 +16,8 @@ clean:
-find . -name '*.pyc' -exec rm {} \;
-find . -name '.*.swp' -exec rm {} \;
+update: clean syncdb compilemessages collectstatic
+
test: clean
cd $(project); $(PYTHON) manage.py test $(apps)
@@ -78,3 +80,19 @@ compilemessages:
cd $(CURDIR)/$$DIR; \
$(PYTHON) ../$(project)/manage.py compilemessages; \
done
+
+collectstatic:
+ cd $(project);$(PYTHON) manage.py collectstatic --noinput
+
+schemamigrations:
+ cd $(project);\
+ for APP in $(apps); do \
+ echo "* schemamigration for "$$APP; \
+ $(PYTHON) manage.py schemamigration --auto $$APP; \
+ done
+
+generate_doc:
+ cd $(project);\
+ $(PYTHON) manage.py graph_models --pydot -I "ImporterType,ImporterDefault,ImporterDefaultValues,ImporterColumn,Regexp,ImportTarget,FormaterType,Import" ishtar_common > /tmp/ishtar.dot
+ dot -Tpng /tmp/ishtar.dot -o docs/source/_static/db-imports.png
+ rm /tmp/ishtar.dot