on fd730eb help sign in
searx/Makefile
56 lines 1.5 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 $@
21tests: .installed.cfg
22 @bin/test
24robot: .installed.cfg
25 @bin/robot
27flake8: .installed.cfg
28 @bin/flake8 setup.py
29 @bin/flake8 ./searx/
31coverage: .installed.cfg
32 @bin/coverage run --source=./searx/ --branch bin/test
33 @bin/coverage report --show-missing
34 @bin/coverage html --directory ./coverage
36production: bin/buildout production.cfg setup.py
37 bin/buildout -c production.cfg $(options)
38 @echo "* Please modify `readlink --canonicalize-missing ./searx/settings.py`"
39 @echo "* Hint 1: on production, disable debug mode and change secret_key"
40 @echo "* Hint 2: searx will be executed at server startup by crontab"
41 @echo "* Hint 3: to run immediatley, execute 'bin/supervisord'"
43minimal: bin/buildout minimal.cfg setup.py
44 bin/buildout -c minimal.cfg $(options)
46styles:
47 @lessc -x searx/static/less/style.less > searx/static/css/style.css
49locales:
50 @pybabel compile -d searx/translations
52clean:
53 @rm -rf .installed.cfg .mr.developer.cfg bin parts develop-eggs \
54 searx.egg-info lib include .coverage coverage searx/static/css/*.css
56.PHONY: all tests robot flake8 coverage production minimal styles locales clean