Skip to content

Commit 7ab8a39

Browse files
authored
Merge pull request nicolargo#2954 from ariel-anieli/makefile
Refactored `webui*` rules
2 parents 24c8725 + dec419f commit 7ab8a39

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,16 @@ install: ## Open a Web Browser to the installation procedure
203203
# Follow ./glances/outputs/static/README.md for more information
204204
# ===================================================================
205205

206+
webui webui%: DIR = glances/outputs/static/
207+
206208
webui: ## Build the Web UI
207-
cd glances/outputs/static/ && npm ci && npm run build
209+
cd $(DIR) && npm ci && npm run build
208210

209211
webui-audit: ## Audit the Web UI
210-
cd glances/outputs/static/ && npm audit
212+
cd $(DIR) && npm audit
211213

212214
webui-audit-fix: ## Fix audit the Web UI
213-
cd glances/outputs/static/ && npm audit fix && npm ci && npm run build
215+
cd $(DIR) && npm audit fix && npm ci && npm run build
214216

215217
# ===================================================================
216218
# Packaging

0 commit comments

Comments
 (0)