Browse Source

[fix] pygments.less - remove pyenv_OK condition

BTW: add pygments.less to the help message

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 3 years ago
parent
commit
1559ed386e
2 changed files with 3 additions and 2 deletions
  1. 1 1
      Makefile
  2. 2 1
      manage

+ 1 - 1
Makefile

@@ -82,7 +82,7 @@ MANAGE += py.build py.clean
 MANAGE += pyenv pyenv.install pyenv.uninstall
 MANAGE += pyenv pyenv.install pyenv.uninstall
 MANAGE += pypi.upload pypi.upload.test
 MANAGE += pypi.upload pypi.upload.test
 MANAGE += test.yamllint test.pylint test.pep8 test.unit test.coverage test.robot test.clean
 MANAGE += test.yamllint test.pylint test.pep8 test.unit test.coverage test.robot test.clean
-MANAGE += themes.all themes.oscar themes.simple themes.bootstrap
+MANAGE += themes.all themes.oscar themes.simple themes.bootstrap pygments.less
 
 
 PHONY += $(MANAGE)
 PHONY += $(MANAGE)
 
 

+ 2 - 1
manage

@@ -86,6 +86,8 @@ themes.* :
   all       : build all themes
   all       : build all themes
   oscar     : build oscar theme
   oscar     : build oscar theme
   simple    : build simple theme
   simple    : build simple theme
+pygments.* :
+  less      : build LESS files for pygments
 EOF
 EOF
 }
 }
 
 
@@ -326,7 +328,6 @@ node.clean() {
 }
 }
 
 
 pygments.less() {
 pygments.less() {
-    [ "$_pyenv_OK" == "OK" ] && return 0
     build_msg PYGMENTS "searx_extra/update/update_pygments.py"
     build_msg PYGMENTS "searx_extra/update/update_pygments.py"
     if ! pyenv.cmd python searx_extra/update/update_pygments.py; then
     if ! pyenv.cmd python searx_extra/update/update_pygments.py; then
         build_msg PYGMENTS "building LESS files for pygments failed"
         build_msg PYGMENTS "building LESS files for pygments failed"