on master help sign in
[mod] add Makfile targets for search.checker.<engine_name>
923b490Markus Heiser
Makefile+14−1
@@ -166,6 +166,18 @@ PHONY += gecko.driver
166gecko.driver:
166gecko.driver:
167 $(PY_ENV_ACT); ./manage.sh install_geckodriver
167 $(PY_ENV_ACT); ./manage.sh install_geckodriver
168
168
169+# search.checker
170+# --------------
171+
172+search.checker: pyenvinstall
173+ $(Q)$(PY_ENV_ACT); searx-checker -v
174+
175+ENGINE_TARGETS=$(patsubst searx/engines/%.py,search.checker.%,$(wildcard searx/engines/[!_]*.py))
176+
177+$(ENGINE_TARGETS): pyenvinstall
178+ $(Q)$(PY_ENV_ACT); searx-checker -v "$(subst _, ,$(patsubst search.checker.%,%,$@))"
179+
180+
169# test
181# test
170# ----
182# ----
171
183
@@ -180,7 +192,8 @@ PYLINT_FILES=\
180 searx/engines/digg.py \
192 searx/engines/digg.py \
181 searx/engines/google.py \
193 searx/engines/google.py \
182 searx/engines/google_news.py \
194 searx/engines/google_news.py \
183− searx/engines/google_videos.py
195+ searx/engines/google_videos.py \
196+ searx/engines/google_images.py
184
197
185test.pylint: pyenvinstall
198test.pylint: pyenvinstall
186 $(call cmd,pylint,$(PYLINT_FILES))
199 $(call cmd,pylint,$(PYLINT_FILES))