2014-01-12 11:40:27 +00:00
|
|
|
# convenience makefile to boostrap & run buildout
|
|
|
|
# use `make options=-v` to run buildout with extra options
|
|
|
|
|
|
|
|
version = 2.7
|
|
|
|
python = bin/python
|
|
|
|
options =
|
|
|
|
|
|
|
|
all: .installed.cfg
|
|
|
|
|
|
|
|
.installed.cfg: bin/buildout buildout.cfg setup.py
|
|
|
|
bin/buildout $(options)
|
|
|
|
|
|
|
|
bin/buildout: $(python) buildout.cfg bootstrap.py
|
|
|
|
$(python) bootstrap.py
|
|
|
|
@touch $@
|
|
|
|
|
|
|
|
$(python):
|
|
|
|
virtualenv -p python$(version) --no-site-packages .
|
|
|
|
@touch $@
|
|
|
|
|
2014-01-19 21:59:01 +00:00
|
|
|
robot: .installed.cfg
|
2014-01-12 11:40:27 +00:00
|
|
|
@bin/robot
|
|
|
|
|
|
|
|
flake8: .installed.cfg
|
|
|
|
@bin/flake8 setup.py
|
|
|
|
@bin/flake8 ./searx/
|
|
|
|
|
2015-01-02 11:36:09 +00:00
|
|
|
tests: .installed.cfg flake8
|
|
|
|
@bin/test
|
|
|
|
@grunt test --gruntfile searx/static/themes/oscar/gruntfile.js
|
|
|
|
|
2014-01-12 11:40:27 +00:00
|
|
|
coverage: .installed.cfg
|
2014-07-12 13:46:55 +00:00
|
|
|
@bin/coverage run bin/test
|
|
|
|
@bin/coverage report
|
|
|
|
@bin/coverage html
|
2014-01-12 11:40:27 +00:00
|
|
|
|
2014-01-19 21:59:01 +00:00
|
|
|
production: bin/buildout production.cfg setup.py
|
2014-01-12 11:40:27 +00:00
|
|
|
bin/buildout -c production.cfg $(options)
|
|
|
|
@echo "* Please modify `readlink --canonicalize-missing ./searx/settings.py`"
|
|
|
|
@echo "* Hint 1: on production, disable debug mode and change secret_key"
|
2014-01-15 20:18:11 +00:00
|
|
|
@echo "* Hint 2: searx will be executed at server startup by crontab"
|
|
|
|
@echo "* Hint 3: to run immediatley, execute 'bin/supervisord'"
|
|
|
|
|
2014-01-19 21:59:01 +00:00
|
|
|
minimal: bin/buildout minimal.cfg setup.py
|
2014-01-15 20:18:11 +00:00
|
|
|
bin/buildout -c minimal.cfg $(options)
|
2014-01-12 11:40:27 +00:00
|
|
|
|
2014-03-05 14:20:30 +00:00
|
|
|
styles:
|
2015-01-01 16:54:33 +00:00
|
|
|
@lessc -x searx/static/themes/default/less/style.less > searx/static/themes/default/css/style.css
|
2015-02-10 14:23:56 +00:00
|
|
|
@lessc -x searx/static/themes/default/less/style-rtl.less > searx/static/themes/default/css/style-rtl.css
|
2015-01-15 23:55:28 +00:00
|
|
|
@lessc -x searx/static/themes/courgette/less/style.less > searx/static/themes/courgette/css/style.css
|
2015-02-10 14:23:56 +00:00
|
|
|
@lessc -x searx/static/themes/courgette/less/style-rtl.less > searx/static/themes/courgette/css/style-rtl.css
|
2015-01-12 13:54:16 +00:00
|
|
|
@lessc -x searx/static/less/bootstrap/bootstrap.less > searx/static/css/bootstrap.min.css
|
2015-01-01 16:54:33 +00:00
|
|
|
@lessc -x searx/static/themes/oscar/less/oscar/oscar.less > searx/static/themes/oscar/css/oscar.min.css
|
2015-02-15 18:09:17 +00:00
|
|
|
@lessc -x searx/static/themes/pix-art/less/style.less > searx/static/themes/pix-art/css/style.css
|
2014-03-05 14:20:30 +00:00
|
|
|
|
2014-11-30 12:21:58 +00:00
|
|
|
grunt:
|
2015-01-01 16:54:33 +00:00
|
|
|
@grunt --gruntfile searx/static/themes/oscar/gruntfile.js
|
2014-11-30 12:21:58 +00:00
|
|
|
|
2014-01-21 23:59:18 +00:00
|
|
|
locales:
|
|
|
|
@pybabel compile -d searx/translations
|
|
|
|
|
2014-01-12 11:40:27 +00:00
|
|
|
clean:
|
|
|
|
@rm -rf .installed.cfg .mr.developer.cfg bin parts develop-eggs \
|
2015-01-01 16:54:33 +00:00
|
|
|
searx.egg-info lib include .coverage coverage searx/static/themes/default/css/*.css
|
2014-01-12 11:40:27 +00:00
|
|
|
|
2014-03-05 14:20:30 +00:00
|
|
|
.PHONY: all tests robot flake8 coverage production minimal styles locales clean
|