-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (27 loc) · 805 Bytes
/
Makefile
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
PROJECT = "Pd Remote VS Code"
VERSION=${shell cat package.json | grep version | cut -d '"' -f 4}
PACKAGE = pd-remote-vscode-${VERSION}.vsix
all: $(PACKAGE)
# This needs to be run once, as root, or nothing will work.
install-vsce:
@echo "Installing vsce..."
npm install -g @vscode/vsce
# If it isn't needed any more.
uninstall-vsce:
@echo "Uninstalling vsce..."
npm uninstall -g @vscode/vsce
$(PACKAGE): node_modules package.json src/extension.ts
@echo "Building $(PROJECT)..."
vsce package
node_modules:
@echo "Installing dependencies..."
npm install
# Do *not* run this as root.
install: all
@echo "Installing $(PROJECT)..."
@echo "Version: $(VERSION)"
code --install-extension $(PACKAGE)
# Delete build artifacts.
clean:
@echo "Cleaning $(PROJECT)..."
rm -rf node_modules out *.vsix