@@ -33,6 +33,7 @@ help-min:
3333 @echo ' gh-pages - build docs & deploy on gh-pages branch'
3434 @echo ' clean - drop builds and environments'
3535 @echo ' project - re-build generic files of the searx project'
36+ @echo ' buildenv - re-build environment files (aka brand)'
3637 @echo ' themes - re-build build the source of the themes'
3738 @echo ' docker - build Docker image'
3839 @echo ' node.env - download & install npm dependencies locally'
@@ -51,7 +52,7 @@ help-all: help-min
5152 @$(MAKE) -e -s docs-help
5253
5354PHONY += install
54−install: pyenvinstall
55+install: buildenv pyenvinstall
5556
5657PHONY += uninstall
5758uninstall: pyenvuninstall
@@ -61,7 +62,7 @@ clean: pyclean docs-clean node.clean test.clean
6162 $(call cmd,common_clean)
6263
6364PHONY += run
64−run: pyenvinstall
65+run: buildenv pyenvinstall
6566 $(Q) ( \
6667 sed -i -e "s/debug : False/debug : True/g" ./searx/settings.yml ; \
6768 sleep 2 ; \
@@ -75,12 +76,11 @@ run: pyenvinstall
7576# ----
7677
7778PHONY += docs
78−
79−docs: pyenvinstall sphinx-doc prebuild-includes
79+docs: buildenv pyenvinstall sphinx-doc prebuild-includes
8080 $(call cmd,sphinx,html,docs,docs)
8181
8282PHONY += docs-live prebuild-includes
83−docs-live: pyenvinstall sphinx-live prebuild-includes
83+docs-live: buildenv pyenvinstall sphinx-live prebuild-includes
8484 $(call cmd,sphinx_autobuild,html,docs,docs)
8585
8686prebuild-includes:
@@ -96,9 +96,9 @@ $(GH_PAGES)::
9696# update project files
9797# --------------------
9898
99−PHONY += project engines.languages searx.brand useragents.update
99+PHONY += project engines.languages useragents.update buildenv
100100
101−project: useragents.update engines.languages searx.brand
101+project: buildenv useragents.update engines.languages
102102
103103engines.languages: pyenvinstall
104104 $(Q)echo "fetch languages .."
@@ -112,7 +112,7 @@ useragents.update: pyenvinstall
112112 $(Q)echo "Update searx/data/useragents.json with the most recent versions of Firefox."
113113 $(Q)$(PY_ENV_ACT); python utils/fetch_firefox_version.py
114114
115−searx.brand:
115+buildenv:
116116 $(Q)echo "build searx/brand.py"
117117 $(Q)echo "GIT_URL = '$(GIT_URL)'" > searx/brand.py
118118 $(Q)echo "GIT_BRANCH = '$(GIT_BRANCH)'" >> searx/brand.py
@@ -132,7 +132,7 @@ searx.brand:
132132# node / npm
133133# ----------
134134
135−node.env:
135+node.env: buildenv
136136 $(Q)./manage.sh npm_packages
137137
138138node.clean:
@@ -149,7 +149,7 @@ node.clean:
149149# ------------
150150
151151PHONY += themes.bootstrap themes themes.oscar themes.simple themes.legacy themes.courgette themes.pixart
152−themes: themes.bootstrap themes.oscar themes.simple themes.legacy themes.courgette themes.pixart
152+themes: buildenv themes.bootstrap themes.oscar themes.simple themes.legacy themes.courgette themes.pixart
153153
154154quiet_cmd_lessc = LESSC $3
155155 cmd_lessc = PATH="$$(npm bin):$$PATH" \
@@ -189,7 +189,7 @@ themes.bootstrap:
189189# ------
190190
191191PHONY += docker
192−docker:
192+docker: buildenv
193193 $(Q)./manage.sh docker_build
194194
195195# gecko
@@ -203,7 +203,7 @@ gecko.driver:
203203# ----
204204
205205PHONY += test test.sh test.pylint test.pep8 test.unit test.coverage test.robot
206−test: test.pylint test.pep8 test.unit gecko.driver test.robot
206+test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
207207
208208# TODO: balance linting with pylint
209209