summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-25 11:49:33 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-25 11:49:33 +0100
commit04c687403e21f883f9614e6a24df9ec450cfc111 (patch)
tree716ead4c08367dc7b872f5d5e10103ff6c039481 /Makefile
parent9a2f26d915ee05d933a18c31bca2121658aa7ffd (diff)
downloadsearxng-04c687403e21f883f9614e6a24df9ec450cfc111.tar.gz
searxng-04c687403e21f883f9614e6a24df9ec450cfc111.zip
[fix] brands: add variables from build env to jinja templating
We have some variables in the build environment which are also needed in the templating process. Theses variables are relavant if one creates a fork with its own branding. We treat these variables under the term 'brands'. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5a47129e4..3b2d499e8 100644
--- a/Makefile
+++ b/Makefile
@@ -71,15 +71,22 @@ $(GH_PAGES)::
# update project files
# --------------------
-PHONY += project engines-languages
+PHONY += project engines-languages searx.brand
-project: searx/data/engines_languages.json
+project: searx/data/engines_languages.json searx.brand
-searx/data/engines_languages.json: pyenvinstall
+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
+searx.brand:
+ $(Q)echo "build searx/brand.py"
+ $(Q)echo "GIT_URL = '$(GIT_URL)'" > searx/brand.py
+ $(Q)echo "SEARX_URL = '$(SEARX_URL)'" >> searx/brand.py
+ $(Q)echo "DOCS_URL = '$(DOCS_URL)'" >> searx/brand.py
+ $(Q)echo "PUBLIC_INSTANCES = 'https://searx.space'" >> searx/brand.py
+
# test
# ----