summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-11-03 15:29:59 +0100
committerAlexandre Flament <alex@al-f.net>2020-11-26 18:27:27 +0100
commit1cfe7f2a7543b2994a1afd0d81da1962d04423b0 (patch)
treec850bfcf07280828345fc706ec6becb5ea7b8e61 /Makefile
parent6ada5bac60f44a09198c9fec642d5c5939982f88 (diff)
[enh] settings.yml: add use_default_settings option
This change is backward compatible with the existing configurations. If a settings.yml loaded from an user defined location (SEARX_SETTINGS_PATH or /etc/searx/settings.yml), then this settings can relied on the default settings.yml with this option: user_default_settings:True
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 29faaeefa..94309cefe 100644
--- a/Makefile
+++ b/Makefile
@@ -266,4 +266,19 @@ test.clean:
travis.codecov:
$(Q)$(PY_ENV_BIN)/python -m pip install codecov
-.PHONY: $(PHONY)
+
+# user-settings
+# -------------
+
+PHONY += user-settings.create user-settings.update
+
+user-settings.update: pyenvinstall
+ $(Q)$(PY_ENV_ACT); pip install ruamel.yaml
+ $(Q)$(PY_ENV_ACT); python utils/update_user_settings.py ${SEARX_SETTINGS_PATH}
+
+user-settings.update.engines: pyenvinstall
+ $(Q)$(PY_ENV_ACT); pip install ruamel.yaml
+ $(Q)$(PY_ENV_ACT); python utils/update_user_settings.py --add-engines ${SEARX_SETTINGS_PATH}
+
+
+.PHONY: $(PHONY) \ No newline at end of file