-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
95 lines (78 loc) · 2.37 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
.PHONY: clean clean_all tests pylint pylint_errors
clean:
rm -rf build dist
clean_all:
rm -rf build dist virt virt_test
app: dist/Marcam.app
dmg: dist/Marcam.dmg
exe: dist/marcam/Marcam.exe
wininstall: dist/Marcam_Installer.exe
pylint: virt_test
@echo ""
@echo "---------------------------------------------------------------"
@echo "Execute pylint"
@echo ""
./scripts/do_pylint --exit-zero
pylint_errors: virt_test
@echo ""
@echo "---------------------------------------------------------------"
@echo "Execute pylint, looking only for errors"
@echo ""
./scripts/do_pylint --errors-only
pylint_jenkins: virt_test
@echo ""
@echo "---------------------------------------------------------------"
@echo "Execute pylint"
@echo ""
./scripts/do_pylint --exit-zero --output-format=parseable
pylint_errors_jenkins: virt_test
@echo ""
@echo "---------------------------------------------------------------"
@echo "Execute pylint, looking only for errors"
@echo ""
./scripts/do_pylint --errors-only --output-format=text
tests: virt_test tests/*
@echo ""
@echo "---------------------------------------------------------------"
@echo "Execute tests"
@echo ""
./scripts/do_tests
virt_test: requirements_test.txt requirements.txt requirements_mac.txt
@echo ""
@echo "---------------------------------------------------------------"
@echo "Make virtual test environment"
@echo ""
rm -rf virt_test
./scripts/gen_virt_test
virt: requirements.txt requirements_mac.txt
@echo ""
@echo "---------------------------------------------------------------"
@echo "Make virtual environment"
@echo ""
rm -rf virt
./scripts/gen_virt
dist/Marcam.app: marcam/* virt
@echo ""
@echo "---------------------------------------------------------------"
@echo "Make app (MacOS)"
@echo ""
./scripts/gen_app
dist/Marcam.dmg: dist/Marcam.app
@echo ""
@echo "---------------------------------------------------------------"
@echo "Make dmg (MacOS)"
@echo ""
./scripts/gen_dmg
dist/marcam/Marcam.exe: marcam/* virt
@echo ""
@echo "---------------------------------------------------------------"
@echo "Make exe (Windows)"
@echo ""
./scripts/gen_winexe
dist/Marcam_Installer.exe: dist/marcam/Marcam.exe
@echo ""
@echo "---------------------------------------------------------------"
@echo "Make installer (Windows)"
@echo ""
./scripts/gen_wininstaller
# vim: nowrap noexpandtab sw=8 sts=0