forked from bambocher/pocketsphinx-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
197 lines (152 loc) · 4.46 KB
/
Makefile
File metadata and controls
197 lines (152 loc) · 4.46 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
ifeq ($(OS),Windows_NT)
PYTHON2_X86 = "c:\Program Files (x86)\Python27\python.exe"
PYTHON3_X86 = "c:\Program Files (x86)\Python35\python.exe"
PYTHON2_X64 = "c:\Program Files\Python27\python.exe"
PYTHON3_X64 = "c:\Program Files\Python35\python.exe"
else
PYTHON2_X86 = python2
PYTHON3_X86 = python3
PYTHON2_X64 = python2
PYTHON3_X64 = python3
endif
.PHONY: all build upload test clean
all: build
ifeq ($(OS),Windows_NT)
build: build_sdist \
build_egg_py2_x86 \
build_egg_py3_x86 \
build_egg_py2_x64 \
build_egg_py3_x64 \
build_wheel_py2_x86 \
build_wheel_py3_x86 \
build_wheel_py2_x64 \
build_wheel_py3_x64 \
build_wininst_py2_x86 \
build_wininst_py3_x86 \
build_wininst_py2_x64 \
build_wininst_py3_x64 \
build_msi_py2_x86 \
build_msi_py3_x86 \
build_msi_py2_x64 \
build_msi_py3_x64
else
build: build_sdist \
build_egg_py2_x64 \
build_egg_py3_x64 \
build_wheel_py2_x64 \
build_wheel_py3_x64
endif
build_sdist: clean
$(PYTHON2_X86) setup.py sdist --formats=zip,gztar,bztar
build_egg_py2_x86: clean
$(PYTHON2_X86) setup.py bdist_egg build
build_egg_py3_x86: clean
$(PYTHON3_X86) setup.py bdist_egg build
build_egg_py2_x64: clean
$(PYTHON2_X64) setup.py bdist_egg build
build_egg_py3_x64: clean
$(PYTHON3_X64) setup.py bdist_egg build
build_wheel_py2_x86: clean
$(PYTHON2_X86) setup.py bdist_wheel build
build_wheel_py3_x86: clean
$(PYTHON3_X86) setup.py bdist_wheel build
build_wheel_py2_x64: clean
$(PYTHON2_X64) setup.py bdist_wheel build
build_wheel_py3_x64: clean
$(PYTHON3_X64) setup.py bdist_wheel build
build_msi_py2_x86: clean
$(PYTHON2_X86) setup.py bdist_msi build
build_msi_py3_x86: clean
$(PYTHON3_X86) setup.py bdist_msi build
build_msi_py2_x64: clean
$(PYTHON2_X64) setup.py bdist_msi build
build_msi_py3_x64: clean
$(PYTHON3_X64) setup.py bdist_msi build
build_wininst_py2_x86: clean
$(PYTHON2_X86) setup.py bdist_wininst build
build_wininst_py3_x86: clean
$(PYTHON3_X86) setup.py bdist_wininst build
build_wininst_py2_x64: clean
$(PYTHON2_X64) setup.py bdist_wininst build
build_wininst_py3_x64: clean
$(PYTHON3_X64) setup.py bdist_wininst build
ifeq ($(OS),Windows_NT)
upload: upload_sdist \
upload_egg_py2_x86 \
upload_egg_py3_x86 \
upload_egg_py2_x64 \
upload_egg_py3_x64 \
upload_wheel_py2_x86 \
upload_wheel_py3_x86 \
upload_wheel_py2_x64 \
upload_wheel_py3_x64 \
upload_wininst_py2_x86 \
upload_wininst_py3_x86 \
upload_wininst_py2_x64 \
upload_wininst_py3_x64 \
upload_msi_py2_x86 \
upload_msi_py3_x86 \
upload_msi_py2_x64 \
upload_msi_py3_x64
else
upload: upload_sdist \
upload_egg_py2_x64 \
upload_egg_py3_x64
endif
upload_sdist: clean
$(PYTHON2_X86) setup.py sdist --formats=zip,gztar,bztar upload
upload_egg_py2_x86: clean
$(PYTHON2_X86) setup.py bdist_egg upload
upload_egg_py3_x86: clean
$(PYTHON3_X86) setup.py bdist_egg upload
upload_egg_py2_x64: clean
$(PYTHON2_X64) setup.py bdist_egg upload
upload_egg_py3_x64: clean
$(PYTHON3_X64) setup.py bdist_egg upload
upload_wheel_py2_x86: clean
$(PYTHON2_X86) setup.py bdist_wheel upload
upload_wheel_py3_x86: clean
$(PYTHON3_X86) setup.py bdist_wheel upload
upload_wheel_py2_x64: clean
$(PYTHON2_X64) setup.py bdist_wheel upload
upload_wheel_py3_x64: clean
$(PYTHON3_X64) setup.py bdist_wheel upload
upload_msi_py2_x86: clean
$(PYTHON2_X86) setup.py bdist_msi upload
upload_msi_py3_x86: clean
$(PYTHON3_X86) setup.py bdist_msi upload
upload_msi_py2_x64: clean
$(PYTHON2_X64) setup.py bdist_msi upload
upload_msi_py3_x64: clean
$(PYTHON3_X64) setup.py bdist_msi upload
upload_wininst_py2_x86: clean
$(PYTHON2_X86) setup.py bdist_wininst upload
upload_wininst_py3_x86: clean
$(PYTHON3_X86) setup.py bdist_wininst upload
upload_wininst_py2_x64: clean
$(PYTHON2_X64) setup.py bdist_wininst upload
upload_wininst_py3_x64: clean
$(PYTHON3_X64) setup.py bdist_wininst upload
ifeq ($(OS),Windows_NT)
test: test_py2_x86 test_py2_x64 test_py3_x86 test_py3_x64
else
test: test_py2_x64 test_py3_x64
endif
test_py2_x86: clean
$(PYTHON2_X86) setup.py test
test_py3_x86: clean
$(PYTHON3_X86) setup.py test
test_py2_x64: clean
$(PYTHON2_X64) setup.py test
test_py3_x64: clean
$(PYTHON3_X64) setup.py test
clean:
rm -rf build *.egg-info tests/*.{htk,lat}
rm -rf sphinxbase/{ad,sphinxbase}.py
rm -rf pocketsphinx/pocketsphinx.py
rm -rf {sphinxbase,pocketsphinx}/*.{so,pyd}
rm -rf {sphinxbase,pocketsphinx,tests}/*.pyc
rm -rf {sphinxbase,pocketsphinx,tests}/__pycache__
rm -rf pocketsphinx/{data,model}
rm -rf swig/sphinxbase/*.c
rm -rf deps/{sphinxbase,pocketsphinx}/swig/*.c