-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
91 lines (61 loc) · 1.51 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
build: generate
.utils/build MathEngine $(name)
generate:
python3 -u MathEngine/.utils/auto_generate.py
test: build
.utils/build Tests
.utils/test $(name)
bp: # breakpoints
vim Tests/.gdbinit
ui:
rm -f UI/calcpp
.utils/build_ui
.PHONY: ui
package: build ui
./scripts/package.sh
pkg: package
newtest:
python3 -u .utils/new_test.py --name $(name)
pydep:
cp MathEngine/libMathEngine.so calcpp/
cp `readlink .libs/libgsl.so.25` calcpp/libgsl.so.25
cp `readlink .libs/libgslcblas.so.0` calcpp/libgslcblas.so.0
repl: build pydep
cd calcpp && python main.py -m repl
pyui: build pydep
cd calcpp && python main.py -m ui
pypkg: build pydep
cd calcpp && pyinstaller calcpp.spec
run: ui
python -u .utils/package.py --no-tar
cd .package/CalcPlusPlus && ./Calculator
buildwin:
powershell.exe -noprofile -executionpolicy bypass -file .utils/build.ps1
buildmac: build ui
.utils/pkg_mac
docs:
cd docs && make html
.PHONY: docs
sandbox:
sandboxer --create --name $(name) --lang $(lang)
experiment:
sandboxer --build --name $(name) --lang $(lang)
exp: experiment
pyexp:
sandboxer --build --name $(name) --lang python
install:
.utils/install
requirements:
python3 -m pip install -r requirements.txt
lc:
.utils/linecount
cleanui:
cd UI && make -f Makefile clean && rm Makefile
cleanengine:
cd MathEngine && make -f Makefile clean
cleantest:
rm Tests/Tests/EngineTest.o
cleanall: cleanui cleanengine
clean:
rm -f MathEngine/libMathEngine.a Tests/run Tests/Tests/EngineTest.o CalcUI/CalcUI
.PHONY: clean