projects
/
xnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
groups.decorators.group_required: redirect to login when user is not authenticated
[xnet]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
c0a4e20
..
e463792
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,4
+1,6
@@
MANAGE_PY = python 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
default: all
@@
-10,10
+12,22
@@
all:
run:
$(MANAGE_PY) runserver
run:
$(MANAGE_PY) runserver
+shell:
+ $(MANAGE_PY) shell
test:
test:
- $(MANAGE_PY) test
example
+ $(MANAGE_PY) test
$(APPS)
resetdb:
rm -f xnet/db.sqlite
$(MANAGE_PY) syncdb --noinput
resetdb:
rm -f xnet/db.sqlite
$(MANAGE_PY) syncdb --noinput
+
+clean:
+ find . "(" -name "*.pyc" -or -name "*.pyo" -or -name "*.mo" ")" -delete
+ find . -type d -empty -delete
+
+doc:
+ $(MAKE) -C doc html
+
+
+.PHONY: default all run shell test resetdb doc