summaryrefslogtreecommitdiff
path: root/Makefile.example
diff options
context:
space:
mode:
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