Makefile 1.26 KB
Newer Older
1

2 3
WEB2PY_VERSION=2.17.2

4
install: install_web2py
5

6
download_web2py:
7
	wget http://web2py.com/examples/static/${WEB2PY_VERSION}/web2py_src.zip
8 9

install_web2py: download_web2py
10 11 12 13 14
	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

15
unit: clean_unit_tests
16
	python web2py/web2py.py -S vidjil -M -R testRunner.py
17

18
functional:
19
	$(MAKE) -C web2py/applications/vidjil/tests functional
20

21 22 23
headless:
	HEADLESS=1 $(MAKE) -C web2py/applications/vidjil/tests functional

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

29 30 31 32
launch_web2py_localhost:
	python web2py/web2py.py -a 'password' -i 127.0.0.1 -p 8000   


33 34 35 36 37
launch_fuse_server:
	python fuse_server.py &
kill_fuse_server:
	pkill -f fuse_server.py

38 39 40 41
clean_unit_tests:
	rm -f web2py/test-reports/*.xml

cleanall: clean_unit_tests
42

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