forked from sleutho/tcl
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (30 loc) · 691 Bytes
/
Makefile
File metadata and controls
45 lines (30 loc) · 691 Bytes
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
37
38
39
40
41
42
43
44
45
BASENAME?=tcl
NAME?=$(BASENAME)
VERSION?=$(shell jq -r .version package.json)
VSIX?=$(BASENAME)-$(VERSION).vsix
PKG_ID?=bitwisecook.$(BASENAME)
.DEFAULT_GOAL := vsix
node_modules/:
npm install
out/%.js: src/%.ts node_modules/ out/syntaxes
npm run webpack
clean:
rm -rf out $(VSIX)
dist-clean: clean
rm -rf node_modules
build: out/extension.js
install: package
code --install-extension $(VSIX)
uninstall:
code --uninstall-extension $(PKG_ID)
package: $(VSIX)
$(VSIX): syntax
npx vsce package
vsix: $(VSIX)
test: out/%.js
npm test
out/syntaxes:
mkdir -p $@
out/syntaxes/%.json: syntaxes/%.tmlanguage.yaml out/syntaxes
npx js-yaml $< > $@
syntax: out/syntaxes/tcl.json