X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=Makefile;h=e463792c3a4c8f9ec2cba088c942921b0b958d2e;hb=56770679d2d87a2b38f64bb6db7886aef454e1fe;hp=c0a4e20ab01e8ed9ae2936d81e0f9a1e62004971;hpb=d48fdabf6a52e170282dc9fff2f97d8db003abc0;p=xnet diff --git a/Makefile b/Makefile index c0a4e20..e463792 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ MANAGE_PY = python manage.py +ROOT_DIR = xnet +APPS = $(shell find $(ROOT_DIR) -name 'models.py' | sed 's,/models.py$$,,; s:.*/::') default: all @@ -10,10 +12,22 @@ all: run: $(MANAGE_PY) runserver +shell: + $(MANAGE_PY) shell test: - $(MANAGE_PY) test example + $(MANAGE_PY) test $(APPS) 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