summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-25 14:09:47 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-25 14:09:47 +0100
commit757ebb5d9fdc24757f199e52575f32f6faf091b3 (patch)
tree19c660bdb979ec72fe05a638b98fa493d1ac03ba /Makefile
parentaaf22baad2d0b361e01b8eb2c10de5d03875ecb6 (diff)
downloadsearxng-757ebb5d9fdc24757f199e52575f32f6faf091b3.tar.gz
searxng-757ebb5d9fdc24757f199e52575f32f6faf091b3.zip
[fix] brands: add variables from build env to grunt process
We have some variables in the build environment which are also needed in the grunt process when building themes. 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--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3b2d499e8..4914a309e 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,7 @@ help:
@echo ' gh-pages - build docs & deploy on gh-pages branch'
@echo ' clean - drop builds and environments'
@echo ' project - re-build generic files of the searx project'
+ @echo ' themes - re-build build the source of the themes'
@echo ''
@$(MAKE) -s -f utils/makefile.include make-help
@echo ''
@@ -87,6 +88,20 @@ searx.brand:
$(Q)echo "DOCS_URL = '$(DOCS_URL)'" >> searx/brand.py
$(Q)echo "PUBLIC_INSTANCES = 'https://searx.space'" >> searx/brand.py
+# build themes
+# ------------
+
+PHONY += themes themes.oscar themes.simple
+themes: themes.oscar themes.simple
+
+themes.oscar:
+ $(Q)echo '[!] Grunt build : oscar theme'
+ $(Q)grunt --gruntfile "searx/static/themes/oscar/gruntfile.js"
+
+themes.simple:
+ $(Q)echo '[!] Grunt build : simple theme'
+ $(Q)grunt --gruntfile "searx/static/themes/simple/gruntfile.js"
+
# test
# ----