-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (30 loc) · 1.01 KB
/
makefile
File metadata and controls
36 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Variables
EXTENSION_NAME := arm-syntax-vscode-extension
VSIX_FILE := $(EXTENSION_NAME).vsix
# Default target
.PHONY: all
all: $(VSIX_FILE)
# Build the VSCode extension (only if VSIX does not exist)
$(VSIX_FILE): package.json CHANGELOG.md extension.js language-configuration.json LICENSE README.md images/logo.png syntaxes/arm.tmLanguage.json
@echo "🔨 Building the VSCode extension..."
@npm install
@vsce package --out $(VSIX_FILE)
@echo "✅ Build complete: $(VSIX_FILE)"
## Install the VSCode extension
.PHONY: install
install: $(VSIX_FILE)
@echo "🚀 Installing the VSCode extension..."
@code --install-extension $(VSIX_FILE) --force
@echo "✅ Extension installed."
## Uninstall the VSCode extension
.PHONY: uninstall
uninstall: $(VSIX_FILE)
@echo "🗑️ Uninstalling the VSCode extension..."
@code --uninstall-extension $(VSIX_FILE)
@echo "✅ Extension uninstalled."
## Clean generated files
.PHONY: clean
clean:
@echo "🧹 Cleaning build artifacts..."
@rm -f $(VSIX_FILE)
@echo "✅ Clean complete."