Merge pull request #2954 from ariel-anieli/makefile

Refactored `webui*` rules
This commit is contained in:
Nicolas Hennion 2024-10-02 15:05:54 +02:00 committed by GitHub
commit 7ab8a39846
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,14 +203,16 @@ install: ## Open a Web Browser to the installation procedure
# Follow ./glances/outputs/static/README.md for more information
# ===================================================================
webui webui%: DIR = glances/outputs/static/
webui: ## Build the Web UI
cd glances/outputs/static/ && npm ci && npm run build
cd $(DIR) && npm ci && npm run build
webui-audit: ## Audit the Web UI
cd glances/outputs/static/ && npm audit
cd $(DIR) && npm audit
webui-audit-fix: ## Fix audit the Web UI
cd glances/outputs/static/ && npm audit fix && npm ci && npm run build
cd $(DIR) && npm audit fix && npm ci && npm run build
# ===================================================================
# Packaging