Download Makefile from Openyx/xcdv: direct link, hf CLI and curl.
- Browser
- Download file 2.81 kB
-
https://huggingface.co/spaces/Openyx/xcdv/resolve/main/Makefile
- Command line
-
hf download hf://spaces/Openyx/xcdv/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/Openyx/xcdv/resolve/main/Makefile
2.81 kB
| # -*- coding: utf-8; mode: makefile-gmake -*- | |
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| .DEFAULT_GOAL=help | |
| export MTOOLS=./manage | |
| include utils/makefile.include | |
| all: clean install | |
| PHONY += help | |
| help: | |
| @./manage --help | |
| @echo '----' | |
| @echo 'run - run developer instance' | |
| @echo 'install - developer install of SearxNG into virtualenv' | |
| @echo 'uninstall - uninstall developer installation' | |
| @echo 'clean - clean up working tree' | |
| @echo 'test - run shell & CI tests' | |
| @echo 'test.shell - test shell scripts' | |
| @echo 'ci.test - run CI tests' | |
| PHONY += run | |
| run: install | |
| $(Q)./manage webapp.run | |
| PHONY += install uninstall | |
| install uninstall: | |
| $(Q)./manage pyenv.$@ | |
| PHONY += clean | |
| clean: py.clean docs.clean node.clean nvm.clean go.clean test.clean | |
| $(Q)./manage build_msg CLEAN "common files" | |
| $(Q)find . -name '*.orig' -exec rm -f {} + | |
| $(Q)find . -name '*.rej' -exec rm -f {} + | |
| $(Q)find . -name '*~' -exec rm -f {} + | |
| $(Q)find . -name '*.bak' -exec rm -f {} + | |
| PHONY += test ci.test test.shell | |
| test: test.yamllint test.black test.pyright_modified test.pylint test.unit test.robot test.rst test.shell test.shfmt | |
| ci.test: test test.pybabel | |
| test.shell: | |
| $(Q)shellcheck -x -s dash \ | |
| container/entrypoint.sh | |
| $(Q)shellcheck -x -s bash \ | |
| utils/brand.sh \ | |
| $(MTOOLS) \ | |
| utils/lib.sh \ | |
| utils/lib_sxng*.sh \ | |
| utils/lib_govm.sh \ | |
| utils/lib_nvm.sh \ | |
| utils/lib_redis.sh \ | |
| utils/lib_valkey.sh \ | |
| utils/searxng.sh | |
| $(Q)$(MTOOLS) build_msg TEST "$@ OK" | |
| PHONY += format | |
| format: format.python format.shell | |
| # wrap ./manage script | |
| MANAGE += weblate.translations.commit weblate.push.translations | |
| MANAGE += data.all data.traits data.useragents data.gsa_useragents data.locales data.currencies | |
| MANAGE += docs.html docs.live docs.gh-pages docs.prebuild docs.clean | |
| MANAGE += podman.build | |
| MANAGE += docker.build docker.buildx | |
| MANAGE += container.build container.test container.push | |
| MANAGE += gecko.driver | |
| MANAGE += node.env node.env.dev node.clean | |
| MANAGE += py.build py.clean | |
| MANAGE += pyenv pyenv.install pyenv.uninstall | |
| MANAGE += format.python format.shell | |
| MANAGE += test.yamllint test.pylint test.black test.pybabel test.unit test.coverage test.robot test.rst test.clean test.themes test.pyright test.pyright_modified test.shfmt | |
| MANAGE += themes.all themes.simple themes.simple.analyze themes.fix themes.lint themes.test | |
| MANAGE += static.build.commit static.build.drop static.build.restore | |
| MANAGE += nvm.install nvm.clean nvm.status nvm.nodejs | |
| MANAGE += go.env.dev go.clean | |
| PHONY += $(MANAGE) | |
| $(MANAGE): | |
| $(Q)$(MTOOLS) $@ | |
| # short hands of selected targets | |
| PHONY += docs container themes | |
| docs: docs.html | |
| container: container.build | |
| themes: themes.all | |