-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
83 lines (69 loc) · 2.29 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
.PHONY: all cleanAll S4MLParser main light WriteMath
all: WriteMath light S4MLParser main
@echo ''
@echo '> Full Solve4Me Project built'
light:
@echo ''
@echo '[Building Solve4Me Project Lightly]'
@echo 'mkdir ./build/'
@if [ ! -d "./build/" ]; then /usr/bin/mkdir ./build/; fi
/bin/cp ./src/htmlResources/index.htm ./build/
/bin/cp ./src/htmlResources/main.js ./build/
/bin/cp ./src/htmlResources/Solve4MeGUIStyle.css ./build/
/bin/cp -R ./src/htmlResources/imgs ./build/
main:
@echo ''
@echo '[Building Solve4Me Project main.js (Solve4Me.js)]'
/usr/local/bin/tsc -t ES5 --strict --outFile ./build/Solve4Me.js \
./src/Enum_KeyCodes.ts \
./src/Enum_VirtualKeyboardKeyStyle.ts \
./src/Interface_JQueryElement.ts \
./src/Interface_MathLineInput.ts \
./src/Interface_EventObject.ts \
./src/Interface_ErrorObject.ts \
./src/Class_CalculusTree.ts \
./src/Class_MathObj.ts \
./src/Class_VarNameCorrespondanceTable.ts \
./src/Class_S4MCoreMemory.ts \
./src/Class_InputScreen.ts \
./src/Class_OutputScreen.ts \
./src/Class_KeyboardListener.ts \
./src/Class_VirtualKeyboard.ts \
./src/main.ts
Nerdamer:
@echo '[Copying Nerdamer lib into build]'
cp -r ./src/Lib_Nerdamer/ ./build/Lib_Nerdamer_build
S4MLParser:
@echo ''
@echo '[Building S4ML Parser]'
cd ./src/S4ML_Parser/ && /bin/make && cd ..
cp ./src/S4ML_Parser/S4MLParser.js ./build/
NerdamerToLatexVarsTranslaterGrammar:
cd ./src/nerdamerToLatexVarsTranslater/ && make
cp ./src/nerdamerToLatexVarsTranslater/nerdamerToLatexVarsTranslater.js ./build/
S4MMemory:
@echo ''
@echo '[Building Solve4Me Memory]'
WriteMath:
@echo ''
@echo '[Building WriteMath Lib]'
cd ./src/Lib_WriteMath/ && /bin/make && cd ../
@if [ -d "./build/Lib_WriteMath_build" ]; then /bin/rm -R ./build/Lib_WriteMath_build; fi
/usr/bin/cp -R ./src/Lib_WriteMath/build/ ./build/Lib_WriteMath_build
cleanS4MLParser:
rm ./build/S4MLParser.js
cleanWriteMath:
@echo ''
@echo '[Cleaning WriteMath Lib]'
cd ./src/Lib_WriteMath/ && /bin/make clean && cd ../
clean:
@echo ''
@echo '[Cleaning Solve4Me Project Lightly]'
@echo '/bin/rm ./build/'
@if [ -d "./build/" ]; then /bin/rm -r ./build/; fi
cleanAll: cleanWriteMath clean
@echo ''
@echo '> Full Solve4Me Project cleaned'
@echo '/bin/rm ./build/'
@if [ -d "./build/" ]; then /bin/rm -R ./build/; fi
re: cleanAll all