summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fadf80cdc..63e7e97f0 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,7 @@ help:
@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 ''
@echo 'environment'
@echo ' SEARX_URL = $(SEARX_URL)'
@@ -78,6 +79,18 @@ prebuild-includes:
$(GH_PAGES)::
@echo "doc available at --> $(DOCS_URL)"
+# update project files
+# --------------------
+
+PHONY += project engines-languages
+
+project: searx/data/engines_languages.json
+
+searx/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
# ----