1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00
searx_ynh/sources/Makefile

64 lines
1.9 KiB
Makefile
Raw Normal View History

2014-05-10 11:56:19 +02: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 $@
robot: .installed.cfg
@bin/robot
flake8: .installed.cfg
@bin/flake8 setup.py
@bin/flake8 ./searx/
2015-01-13 17:13:08 +01:00
tests: .installed.cfg flake8
@bin/test
@grunt test --gruntfile searx/static/themes/oscar/gruntfile.js
2014-05-10 11:56:19 +02:00
coverage: .installed.cfg
2014-12-01 12:26:38 +01:00
@bin/coverage run bin/test
@bin/coverage report
@bin/coverage html
2014-05-10 11:56:19 +02:00
production: bin/buildout production.cfg setup.py
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"
@echo "* Hint 2: searx will be executed at server startup by crontab"
@echo "* Hint 3: to run immediatley, execute 'bin/supervisord'"
minimal: bin/buildout minimal.cfg setup.py
bin/buildout -c minimal.cfg $(options)
styles:
2015-01-13 17:13:08 +01:00
@lessc -x searx/static/themes/default/less/style.less > searx/static/themes/default/css/style.css
2015-02-09 13:30:16 +01:00
@lessc -x searx/static/themes/courgette/less/style.less > searx/static/themes/courgette/css/style.css
2015-01-13 17:13:08 +01:00
@lessc -x searx/static/less/bootstrap/bootstrap.less > searx/static/css/bootstrap.min.css
@lessc -x searx/static/themes/oscar/less/oscar/oscar.less > searx/static/themes/oscar/css/oscar.min.css
2014-05-10 11:56:19 +02:00
2014-12-13 13:56:02 +01:00
grunt:
2015-01-13 17:13:08 +01:00
@grunt --gruntfile searx/static/themes/oscar/gruntfile.js
2014-12-13 13:56:02 +01:00
2014-05-10 11:56:19 +02:00
locales:
@pybabel compile -d searx/translations
clean:
@rm -rf .installed.cfg .mr.developer.cfg bin parts develop-eggs \
2015-01-13 17:13:08 +01:00
searx.egg-info lib include .coverage coverage searx/static/themes/default/css/*.css
2014-05-10 11:56:19 +02:00
.PHONY: all tests robot flake8 coverage production minimal styles locales clean