Makefile 1.19 KB
Newer Older
1

2
install: install_web2py
3

4 5 6 7 8 9 10
install_web2py:
	wget http://web2py.com/examples/static/web2py_src.zip
	unzip web2py_src.zip
	mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
	rm web2py_src.zip
	cp -i web2py/applications/vidjil/modules/defs.py.sample web2py/applications/vidjil/modules/defs.py

11
unit: clean_unit_tests
12
	python web2py/web2py.py -S vidjil -M -R testRunner.py
13

14
functional:
15
	$(MAKE) -C web2py/applications/vidjil/tests functional
16

17 18 19
headless:
	HEADLESS=1 $(MAKE) -C web2py/applications/vidjil/tests functional

20
install_web2py_standalone: install_web2py
21
	mkdir -p web2py/applications/vidjil/databases web2py/upload/uploads web2py/result/results
22
	sed -i 's@/var/vidjil@logs@' web2py/applications/vidjil/modules/defs.py
23
	sed -i '/mysql/d; /^DIR_/s/\/mnt\///;'  web2py/applications/vidjil/modules/defs.py
24

25 26 27 28
launch_web2py_localhost:
	python web2py/web2py.py -a 'password' -i 127.0.0.1 -p 8000   


29 30 31 32 33
launch_fuse_server:
	python fuse_server.py &
kill_fuse_server:
	pkill -f fuse_server.py

34 35 36 37
clean_unit_tests:
	rm -f web2py/test-reports/*.xml

cleanall: clean_unit_tests
38

39
.PHONY: install install_web2py unit install_web2py_standalone launch_web2py_localhost launch_fuse_server kill_fuse_server clean_unit_tests cleanall