Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

Merge PR #1900 of https://github.com/asciimoo/searx into filtron

Markus Heisere73abd9d8a63
diff --cc Makefile
index 8fa8e4f85,a093d8b18..d2c7438b7
--- a/Makefile
+++ b/Makefile
@@@ -37,21 -33,12 +38,21 @@@ help-min
@echo ' docker - build Docker image'
@echo ' node.env - download & install npm dependencies locally'
@echo ''
- @$(MAKE) -s -f utils/makefile.include make-help
+ @echo 'environment'
+ @echo ' SEARX_URL = $(SEARX_URL)'
+ @echo ' GIT_URL = $(GIT_URL)'
+ @echo ' DOCS_URL = $(DOCS_URL)'
@echo ''
- @$(MAKE) -s -f utils/makefile.python python-help
+ @$(MAKE) -e -s make-help
+
+help-all: help-min
+ @echo ''
+ @$(MAKE) -e -s python-help
+ @echo ''
+ @$(MAKE) -e -s docs-help
PHONY += install
- install: pyenvinstall
+ install: buildenv pyenvinstall
PHONY += uninstall
uninstall: pyenvuninstall
@@@ -75,21 -62,13 +76,20 @@@ run: buildenv pyenvinstal
# ----
PHONY += docs
-
- docs: pyenvinstall sphinx-doc prebuild-includes
-docs: buildenv pyenvinstall sphinx-doc
++docs: buildenv pyenvinstall sphinx-doc prebuild-includes
$(call cmd,sphinx,html,docs,docs)
-PHONY += docs-live
-docs-live: buildenv pyenvinstall sphinx-live
+PHONY += docs-live prebuild-includes
- docs-live: pyenvinstall sphinx-live prebuild-includes
++docs-live: buildenv pyenvinstall sphinx-live prebuild-includes
$(call cmd,sphinx_autobuild,html,docs,docs)
+prebuild-includes:
+ @mkdir -p $(DOCS_BUILD)/includes
+ @./utils/searx.sh doc | cat > $(DOCS_BUILD)/includes/searx.rst
+ @./utils/filtron.sh doc | cat > $(DOCS_BUILD)/includes/filtron.rst
+ @./utils/morty.sh doc | cat > $(DOCS_BUILD)/includes/morty.rst
+
+
$(GH_PAGES)::
@echo "doc available at --> $(DOCS_URL)"
@@@ -112,10 -91,9 +112,10 @@@ useragents.update: pyenvinstal
$(Q)echo "Update searx/data/useragents.json with the most recent versions of Firefox."
$(Q)$(PY_ENV_ACT); python utils/fetch_firefox_version.py
- searx.brand:
+ buildenv:
$(Q)echo "build searx/brand.py"
$(Q)echo "GIT_URL = '$(GIT_URL)'" > searx/brand.py
+ $(Q)echo "GIT_BRANCH = '$(GIT_BRANCH)'" >> searx/brand.py
$(Q)echo "ISSUE_URL = 'https://github.com/asciimoo/searx/issues'" >> searx/brand.py
$(Q)echo "SEARX_URL = '$(SEARX_URL)'" >> searx/brand.py
$(Q)echo "DOCS_URL = '$(DOCS_URL)'" >> searx/brand.py
@@@ -202,11 -179,11 +202,11 @@@ gecko.driver
# test
# ----
-PHONY += test test.pylint test.pep8 test.unit test.coverage test.robot
-
+PHONY += test test.sh test.pylint test.pep8 test.unit test.coverage test.robot
- test: test.pylint test.pep8 test.unit gecko.driver test.robot
+ test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
# TODO: balance linting with pylint
+
test.pylint: pyenvinstall
$(call cmd,pylint,\
searx/preferences.py \