glances/Makefile

59 lines
1.5 KiB
Makefile
Raw Normal View History

2018-12-27 12:10:26 +03:00
PORT?=8008
install:
sensible-browser "https://github.com/nicolargo/glances#installation"
2021-05-29 19:48:27 +03:00
venv-python:
virtualenv -p /usr/bin/python3 venv
2018-12-27 12:10:26 +03:00
2021-05-29 19:48:27 +03:00
venv-dev:
./venv/bin/pip install -r dev-requirements.txt
./venv/bin/pip install -r doc-requirements.txt
2018-12-27 12:10:26 +03:00
2021-05-29 19:48:27 +03:00
venv-dev-upgrade:
./venv/bin/pip install --upgrade -r dev-requirements.txt
./venv/bin/pip install --upgrade -r doc-requirements.txt
2021-04-11 11:39:30 +03:00
venv:
./venv/bin/pip install -r requirements.txt
./venv/bin/pip install -r optional-requirements.txt
venv-upgrade:
2021-05-29 19:48:27 +03:00
./venv/bin/pip install --upgrade -r dev-requirements.txt
./venv/bin/pip install --upgrade -r requirements.txt
./venv/bin/pip install --upgrade -r optional-requirements.txt
2021-05-29 19:48:27 +03:00
test:
./unitest-all.sh
docs: venv-dev
cd docs && ./build.sh
docs-server: docs
(sleep 2 && sensible-browser "http://localhost:$(PORT)") &
cd docs/_build/html/ && ./venv/bin/python -m SimpleHTTPServer $(PORT)
webui: venv-dev
cd glances/outputs/static/ && npm install && npm audit fix && npm run build
run: venv
./venv/bin/python -m glances -C ./conf/glances.conf
run-debug: venv
./venv/bin/python -m glances -C ./conf/glances.conf -d
2021-05-29 19:48:27 +03:00
run-profiling: venv venv-dev
@echo "Please complete and run: sudo ./venv/bin/py-spy record --pid <GLANCES PID> -o /tmp/glances.svg -d 60 -s "
run-webserver: venv
./venv/bin/python -m glances -C ./conf/glances.conf -w
run-server: venv
./venv/bin/python -m glances -C ./conf/glances.conf -s
run-client: venv
./venv/bin/python -m glances -C ./conf/glances.conf -c localhost
2018-12-27 12:10:26 +03:00
.PHONY: test docs docs-server