Fix typos and improve English in doc/events.rst
[xnet] / Makefile
index e69de29..c972b0d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -0,0 +1,30 @@
+MANAGE_PY = python manage.py
+ROOT_DIR = xnet
+APPS = $(shell find $(ROOT_DIR) -name 'models.py' | sed 's,/models.py$$,,; s:.*/::')
+
+
+default: all
+
+
+all:
+
+
+run:
+       $(MANAGE_PY) runserver
+
+shell:
+       $(MANAGE_PY) shell
+
+test:
+       $(MANAGE_PY) test $(APPS)
+
+resetdb:
+       rm -f xnet/db.sqlite
+       $(MANAGE_PY) syncdb --noinput
+
+
+doc:
+       $(MAKE) -C doc html
+
+
+.PHONY: default all run shell test resetdb doc