1# -*- coding: utf-8; mode: makefile-gmake -*-
4include utils/makefile.include
8PY_SETUP_EXTRAS ?= \[test\]
10include utils/makefile.python
11include utils/makefile.sphinx
15PHONY += help-min help-all help
19 @echo 'to get more help: make help-all'
22 @echo ' test - run developer tests'
23 @echo ' docs - build documentation'
24 @echo ' docs-live - autobuild HTML documentation while editing'
25 @echo ' run - run developer instance'
26 @echo ' install - developer install (./local)'
27 @echo ' uninstall - uninstall (./local)'
28 @echo ' gh-pages - build docs & deploy on gh-pages branch'
29 @echo ' clean - drop builds and environments'
30 @echo ' project - re-build generic files of the searx project'
33 @echo ' SEARX_URL = $(SEARX_URL)'
34 @echo ' GIT_URL = $(GIT_URL)'
35 @echo ' DOCS_URL = $(DOCS_URL)'
37 @$(MAKE) -e -s make-help
41 @$(MAKE) -e -s python-help
43 @$(MAKE) -e -s docs-help
49uninstall: pyenvuninstall
52clean: pyclean docs-clean
53 $(call cmd,common_clean)
58 sed -i -e "s/debug : False/debug : True/g" ./searx/settings.yml ; \
60 xdg-open http://127.0.0.1:8888/ ; \
62 sed -i -e "s/debug : True/debug : False/g" ./searx/settings.yml ; \
64 $(PY_ENV)/bin/python ./searx/webapp.py
71docs: pyenvinstall sphinx-doc prebuild-includes
72 $(call cmd,sphinx,html,docs,docs)
75docs-live: pyenvinstall sphinx-live prebuild-includes
76 $(call cmd,sphinx_autobuild,html,docs,docs)
79 @mkdir -p $(DOCS_BUILD)/includes
80 @./utils/searx.sh doc | cat > $(DOCS_BUILD)/includes/searx.rst
81 @./utils/filtron.sh doc | cat > $(DOCS_BUILD)/includes/filtron.rst
82 @./utils/morty.sh doc | cat > $(DOCS_BUILD)/includes/morty.rst
86 @echo "doc available at --> $(DOCS_URL)"
91PHONY += project engines-languages
93project: searx/data/engines_languages.json
95searx/data/engines_languages.json: pyenvinstall
96 $(PY_ENV_ACT); python utils/fetch_languages.py
97 mv engines_languages.json searx/data/engines_languages.json
98 mv languages.py searx/languages.py
103PHONY += test test.sh test.pylint test.pep8 test.unit test.robot
105test: test.pylint test.pep8 test.unit test.robot
107# TODO: balance linting with pylint
109test.pylint: pyenvinstall
110 $(call cmd,pylint,searx/preferences.py)
111 $(call cmd,pylint,searx/testing.py)
113# ubu1604: uses shellcheck v0.3.7 (from 04/2015), no longer supported!
115 shellcheck -x utils/lib.sh
116 shellcheck -x utils/filtron.sh
117 shellcheck -x utils/searx.sh
118 shellcheck -x utils/morty.sh
119 shellcheck -x utils/lxc.sh
120 shellcheck -x utils/lxc-searx.env
121 shellcheck -x .config.sh
123test.pep8: pyenvinstall
124 $(PY_ENV_ACT); ./manage.sh pep8_check
126test.unit: pyenvinstall
127 $(PY_ENV_ACT); ./manage.sh unit_tests
129test.robot: pyenvinstall
130 $(PY_ENV_ACT); ./manage.sh install_geckodriver
131 $(PY_ENV_ACT); ./manage.sh robot_tests
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list