mirror of
https://github.com/ilyakooo0/searx.git
synced 2024-12-01 08:52:56 +03:00
Merge PR #1900 of https://github.com/asciimoo/searx into filtron
This commit is contained in:
commit
e73abd9d8a
24
Makefile
24
Makefile
@ -33,6 +33,7 @@ help-min:
|
||||
@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 ' buildenv - re-build environment files (aka brand)'
|
||||
@echo ' themes - re-build build the source of the themes'
|
||||
@echo ' docker - build Docker image'
|
||||
@echo ' node.env - download & install npm dependencies locally'
|
||||
@ -51,7 +52,7 @@ help-all: help-min
|
||||
@$(MAKE) -e -s docs-help
|
||||
|
||||
PHONY += install
|
||||
install: pyenvinstall
|
||||
install: buildenv pyenvinstall
|
||||
|
||||
PHONY += uninstall
|
||||
uninstall: pyenvuninstall
|
||||
@ -61,7 +62,7 @@ clean: pyclean docs-clean node.clean test.clean
|
||||
$(call cmd,common_clean)
|
||||
|
||||
PHONY += run
|
||||
run: pyenvinstall
|
||||
run: buildenv pyenvinstall
|
||||
$(Q) ( \
|
||||
sed -i -e "s/debug : False/debug : True/g" ./searx/settings.yml ; \
|
||||
sleep 2 ; \
|
||||
@ -75,12 +76,11 @@ run: pyenvinstall
|
||||
# ----
|
||||
|
||||
PHONY += docs
|
||||
|
||||
docs: pyenvinstall sphinx-doc prebuild-includes
|
||||
docs: buildenv pyenvinstall sphinx-doc prebuild-includes
|
||||
$(call cmd,sphinx,html,docs,docs)
|
||||
|
||||
PHONY += docs-live prebuild-includes
|
||||
docs-live: pyenvinstall sphinx-live prebuild-includes
|
||||
docs-live: buildenv pyenvinstall sphinx-live prebuild-includes
|
||||
$(call cmd,sphinx_autobuild,html,docs,docs)
|
||||
|
||||
prebuild-includes:
|
||||
@ -96,9 +96,9 @@ $(GH_PAGES)::
|
||||
# update project files
|
||||
# --------------------
|
||||
|
||||
PHONY += project engines.languages searx.brand useragents.update
|
||||
PHONY += project engines.languages useragents.update buildenv
|
||||
|
||||
project: useragents.update engines.languages searx.brand
|
||||
project: buildenv useragents.update engines.languages
|
||||
|
||||
engines.languages: pyenvinstall
|
||||
$(Q)echo "fetch languages .."
|
||||
@ -112,7 +112,7 @@ useragents.update: pyenvinstall
|
||||
$(Q)echo "Update searx/data/useragents.json with the most recent versions of Firefox."
|
||||
$(Q)$(PY_ENV_ACT); python utils/fetch_firefox_version.py
|
||||
|
||||
searx.brand:
|
||||
buildenv:
|
||||
$(Q)echo "build searx/brand.py"
|
||||
$(Q)echo "GIT_URL = '$(GIT_URL)'" > searx/brand.py
|
||||
$(Q)echo "GIT_BRANCH = '$(GIT_BRANCH)'" >> searx/brand.py
|
||||
@ -132,7 +132,7 @@ searx.brand:
|
||||
# node / npm
|
||||
# ----------
|
||||
|
||||
node.env:
|
||||
node.env: buildenv
|
||||
$(Q)./manage.sh npm_packages
|
||||
|
||||
node.clean:
|
||||
@ -149,7 +149,7 @@ node.clean:
|
||||
# ------------
|
||||
|
||||
PHONY += themes.bootstrap themes themes.oscar themes.simple themes.legacy themes.courgette themes.pixart
|
||||
themes: themes.bootstrap themes.oscar themes.simple themes.legacy themes.courgette themes.pixart
|
||||
themes: buildenv themes.bootstrap themes.oscar themes.simple themes.legacy themes.courgette themes.pixart
|
||||
|
||||
quiet_cmd_lessc = LESSC $3
|
||||
cmd_lessc = PATH="$$(npm bin):$$PATH" \
|
||||
@ -189,7 +189,7 @@ themes.bootstrap:
|
||||
# ------
|
||||
|
||||
PHONY += docker
|
||||
docker:
|
||||
docker: buildenv
|
||||
$(Q)./manage.sh docker_build
|
||||
|
||||
# gecko
|
||||
@ -203,7 +203,7 @@ gecko.driver:
|
||||
# ----
|
||||
|
||||
PHONY += test test.sh test.pylint test.pep8 test.unit test.coverage test.robot
|
||||
test: test.pylint test.pep8 test.unit gecko.driver test.robot
|
||||
test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
|
||||
|
||||
# TODO: balance linting with pylint
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user