news - Removing promo range fields
[xnet] / Makefile
index cda2569..852b339 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
-MANAGE_PY = python2 manage.py
+MANAGE_PY = python manage.py
+ROOT_DIR = xnet
+APPS = $(shell find $(ROOT_DIR) -name 'models.py' | sed 's,/models.py$$,,; s:.*/::')
 
 
 default: all
@@ -10,9 +12,11 @@ all:
 run:
        $(MANAGE_PY) runserver
 
+shell:
+       $(MANAGE_PY) shell
 
 test:
-       $(MANAGE_PY) test example
+       $(MANAGE_PY) test $(APPS)
 
 resetdb:
        rm -f xnet/db.sqlite