on v0.7.0 help sign in
searx/Makefile
63 lines 2.0 kB history raw
1# convenience makefile to boostrap & run buildout
2# use `make options=-v` to run buildout with extra options
4version = 2.7
5python = bin/python
6options =
8all: .installed.cfg
10.installed.cfg: bin/buildout buildout.cfg setup.py
11 bin/buildout $(options)
13bin/buildout: $(python) buildout.cfg bootstrap.py
14 $(python) bootstrap.py
15 @touch $@
17$(python):
18 virtualenv -p python$(version) --no-site-packages .
19 @touch $@
21robot: .installed.cfg
22 @bin/robot
24flake8: .installed.cfg
25 @bin/flake8 setup.py
26 @bin/flake8 ./searx/
28tests: .installed.cfg flake8
29 @bin/test
30 @grunt test --gruntfile searx/static/themes/oscar/gruntfile.js
32coverage: .installed.cfg
33 @bin/coverage run bin/test
34 @bin/coverage report
35 @bin/coverage html
37production: bin/buildout production.cfg setup.py
38 bin/buildout -c production.cfg $(options)
39 @echo "* Please modify `readlink --canonicalize-missing ./searx/settings.py`"
40 @echo "* Hint 1: on production, disable debug mode and change secret_key"
41 @echo "* Hint 2: searx will be executed at server startup by crontab"
42 @echo "* Hint 3: to run immediatley, execute 'bin/supervisord'"
44minimal: bin/buildout minimal.cfg setup.py
45 bin/buildout -c minimal.cfg $(options)
47styles:
48 @lessc -x searx/static/themes/default/less/style.less > searx/static/themes/default/css/style.css
49 @lessc -x searx/static/themes/courgette/less/style.less > searx/static/themes/courgette/css/style.css
50 @lessc -x searx/static/less/bootstrap/bootstrap.less > searx/static/css/bootstrap.min.css
51 @lessc -x searx/static/themes/oscar/less/oscar/oscar.less > searx/static/themes/oscar/css/oscar.min.css
53grunt:
54 @grunt --gruntfile searx/static/themes/oscar/gruntfile.js
56locales:
57 @pybabel compile -d searx/translations
59clean:
60 @rm -rf .installed.cfg .mr.developer.cfg bin parts develop-eggs \
61 searx.egg-info lib include .coverage coverage searx/static/themes/default/css/*.css
63.PHONY: all tests robot flake8 coverage production minimal styles locales clean