-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
128 lines (112 loc) · 2.03 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
.DEFAULT_GOAL := go
grammar:
ifeq ($(OS),Windows_NT)
@echo '=== Windows Grammar Builder ==='
.\scripts\grammar.bat
else
echo '=== Linux/Darwin/Unix-like Grammar Builder ==='
./scripts/grammar.sh
endif
stat:
ifeq ($(OS),Windows_NT)
@echo 'Not supported!'
else
./scripts/stat.sh
endif
go:
ifeq ($(OS),Windows_NT)
@echo '=== Source Code Builder ==='
powershell .\scripts\src.ps1
else
echo '=== Source Code Builder ==='
./scripts/src.sh
endif
publish:
ifeq ($(OS),Windows_NT)
@echo '=== NOT SUPPORT ==='
else
echo '=== Source Code Builder ==='
./scripts/publish.sh
endif
mini:
ifeq ($(OS),Windows_NT)
@echo '=== Source Code Builder ==='
powershell .\scripts\minimal.ps1
else
echo '=== Source Code Builder ==='
./scripts/minimal.sh
endif
minimal:
ifeq ($(OS),Windows_NT)
@echo '=== Source Code Builder ==='
powershell .\scripts\minimal.ps1
else
echo '=== Source Code Builder ==='
./scripts/minimal.sh
endif
gui:
ifeq ($(OS),Windows_NT)
@echo '=== Source Code Builder ==='
powershell .\scripts\gui.ps1
else
echo '=== Source Code Builder ==='
./scripts/gui.sh
endif
gox:
ifeq ($(OS),Windows_NT)
@echo '=== Source Code Builder X ==='
powershell .\scripts\gox.ps1
else
echo '=== Source Code Builder X ==='
./scripts/gox.sh
endif
wasm:
ifeq ($(OS),Windows_NT)
@echo '=== Source Code Builder X ==='
powershell .\scripts\wasm.ps1
else
echo '=== Source Code Builder X ==='
./scripts/wasm.sh
endif
tidy:
ifeq ($(OS),Windows_NT)
@echo '=== Tidy ==='
.\scripts\tidy.bat
else
echo '=== Tidy ==='
./scripts/tidy.sh
endif
vsix:
ifeq ($(OS),Windows_NT)
@echo '=== VSIX Builder ==='
.\scripts\vsix.bat
else
echo '=== VSIX Builder ==='
./scripts/vsix.sh
endif
all:
make grammar
make go
make gui
out:
ifeq ($(OS),Windows_NT)
explorer .\src\out
else
open ./src/out
endif
test:
ifeq ($(OS),Windows_NT)
@echo '=== Test ==='
.\scripts\test.bat
else
echo '=== Test ==='
./scripts/test.sh
endif
pack:
ifeq ($(OS),Windows_NT)
@echo 'NOT SUPPORT IN WINDOWS'
else
./scripts/macapp.sh
endif
install:
cp ./src/out/interpreter ~/.local/bin/k