diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-03-26 13:32:08 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-03-26 13:32:08 +0100 |
commit | 00251d7c66e60dc9859bf6368ab68d545660b90e (patch) | |
tree | cff6c6b9d666dcd4839036f059f29f9ed2bf4baf /Makefile | |
parent | 5d087ee466750e51dfc9ff95a88402055ad71741 (diff) | |
download | searxng-00251d7c66e60dc9859bf6368ab68d545660b90e.tar.gz searxng-00251d7c66e60dc9859bf6368ab68d545660b90e.zip |
Makefile: add target 'useragents.update' to fetch versions of Firefox
Update searx/data/useragents.json with the most recent versions of Firefox.
BTW: add 'useragents.update' to 'project' target and clean up the Makefile and
remove it from the manage.sh script.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
closes: https://github.com/asciimoo/searx/issues/1882
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -74,14 +74,21 @@ $(GH_PAGES):: # update project files # -------------------- -PHONY += project engines-languages searx.brand +PHONY += project engines.languages searx.brand useragents.update -project: searx/data/engines_languages.json searx.brand +project: useragents.update engines.languages searx.brand -engines-languages: pyenvinstall - $(PY_ENV_ACT); python utils/fetch_languages.py - mv engines_languages.json searx/data/engines_languages.json - mv languages.py searx/languages.py +engines.languages: pyenvinstall + $(Q)echo "fetch languages .." + $(Q)$(PY_ENV_ACT); python utils/fetch_languages.py + $(Q)echo "update searx/data/engines_languages.json" + $(Q)mv engines_languages.json searx/data/engines_languages.json + $(Q)echo "update searx/languages.py" + $(Q)mv languages.py searx/languages.py + +useragents.update: pyenvinstall + $(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: $(Q)echo "build searx/brand.py" |