| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 | # -*- coding: utf-8; mode: makefile-gmake -*-export GIT_URL=https://github.com/asciimoo/searxexport SEARX_URL=https://searx.meexport DOCS_URL=https://asciimoo.github.io/searxPYOBJECTS = searxDOC       = docsPY_SETUP_EXTRAS ?= \[test\]PYDIST=./dist/pyPYBUILD=./build/pyinclude utils/makefile.includeinclude utils/makefile.pythoninclude utils/makefile.sphinxall: clean installPHONY += helphelp:	@echo  '  test      - run developer tests'	@echo  '  docs      - build documentation'	@echo  '  docs-live - autobuild HTML documentation while editing'	@echo  '  run       - run developer instance'	@echo  '  install   - developer install (./local)'	@echo  '  uninstall - uninstall (./local)'	@echo  '  gh-pages  - build docs & deploy on gh-pages branch'	@echo  '  clean     - drop builds and environments'	@echo  '  project   - re-build generic files of the searx project'	@echo  ''	@$(MAKE) -s -f utils/makefile.include make-help	@echo  ''	@$(MAKE) -s -f utils/makefile.python python-helpPHONY += installinstall: pyenvinstallPHONY += uninstalluninstall: pyenvuninstallPHONY += cleanclean: pyclean	$(call cmd,common_clean)PHONY += runrun:  pyenvinstall	$(Q) ( \	sed -i -e "s/debug : False/debug : True/g" ./searx/settings.yml ; \	sleep 2 ; \	xdg-open http://127.0.0.1:8888/ ; \	sleep 3 ; \	sed -i -e "s/debug : True/debug : False/g" ./searx/settings.yml ; \	) &	$(PY_ENV)/bin/python ./searx/webapp.py# docs# ----PHONY += docsdocs:  pyenvinstall sphinx-doc	$(call cmd,sphinx,html,docs,docs)PHONY += docs-livedocs-live:  pyenvinstall sphinx-live	$(call cmd,sphinx_autobuild,html,docs,docs)$(GH_PAGES)::	@echo "doc available at --> $(DOCS_URL)"# update project files# --------------------PHONY += project engines-languagesproject: searx/data/engines_languages.jsonsearx/data/engines_languages.json:  pyenvinstall	$(PY_ENV_ACT); python utils/fetch_languages.py	mv engines_languages.json searx/data/engines_languages.json	mv languages.py searx/languages.py# test# ----PHONY += test test.pylint test.pep8 test.unit test.robottest: test.pylint test.pep8 test.unit test.robot# TODO: balance linting with pylinttest.pylint: pyenvinstall	$(call cmd,pylint,searx/preferences.py)	$(call cmd,pylint,searx/testing.py)test.pep8: pyenvinstall	$(PY_ENV_ACT); ./manage.sh pep8_checktest.unit: pyenvinstall	$(PY_ENV_ACT); ./manage.sh unit_teststest.robot: pyenvinstall	$(PY_ENV_ACT); ./manage.sh install_geckodriver	$(PY_ENV_ACT); ./manage.sh robot_tests.PHONY: $(PHONY)
 |