equal
deleted
inserted
replaced
1 #! gmake |
1 #! gmake |
2 |
2 |
3 # This is Makefile for Beremiz installer |
3 # This is Makefile for Beremiz installer |
4 # |
4 # |
5 # Invoke with "make -f path/to/Makefile" on a linux box |
5 # Invoke with "make -f path/to/Makefile" on a linux box |
6 # in directory where build should happen. |
6 # in directory where build should happen. |
7 # |
7 # |
8 # All those dependencies have to be installed : |
8 # All those dependencies have to be installed : |
9 # |
9 # |
10 # Windows installer : |
10 # Windows installer : |
20 # - xmlstarlet |
20 # - xmlstarlet |
21 # - xsltproc |
21 # - xsltproc |
22 # - python-lxml |
22 # - python-lxml |
23 # |
23 # |
24 # Linux RootFS and packages |
24 # Linux RootFS and packages |
25 # - reprepro |
25 # - reprepro |
26 # - multistrap |
26 # - multistrap |
27 # - germinate |
27 # - germinate |
28 # - user-mode-linux |
28 # - user-mode-linux |
29 # - ddpt |
29 # - ddpt |
30 # |
30 # |
180 unzip -d $(tmp)/pw32 $$dld ; [ $$? -eq 1 ] #silence error unziping .exe |
180 unzip -d $(tmp)/pw32 $$dld ; [ $$? -eq 1 ] #silence error unziping .exe |
181 cp -R $(tmp)/pw32/PLATLIB/* $(pysite) |
181 cp -R $(tmp)/pw32/PLATLIB/* $(pysite) |
182 |
182 |
183 # zope.interface |
183 # zope.interface |
184 $(call get_src_pypi,9d/2d/beb32519c0bd19bda4ac38c34db417d563ee698518e582f951d0b9e5898b,zope.interface-4.3.2-py2.7-win32.egg)\ |
184 $(call get_src_pypi,9d/2d/beb32519c0bd19bda4ac38c34db417d563ee698518e582f951d0b9e5898b,zope.interface-4.3.2-py2.7-win32.egg)\ |
185 unzip -d $(tmp) $$dld |
185 unzip -d $(tmp) $$dld |
186 cp -R $(tmp)/zope $(pysite) |
186 cp -R $(tmp)/zope $(pysite) |
187 |
187 |
188 # Twisted |
188 # Twisted |
189 $(call get_src_pypi,2.7/T/Twisted,Twisted-11.0.0.winxp32-py2.7.msi)\ |
189 $(call get_src_pypi,2.7/T/Twisted,Twisted-11.0.0.winxp32-py2.7.msi)\ |
190 $(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir) |
190 $(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir) |
205 cp -R $(tmp)/simplejson-2.2.1/simplejson/ $(pysite) |
205 cp -R $(tmp)/simplejson-2.2.1/simplejson/ $(pysite) |
206 |
206 |
207 # WxGlade |
207 # WxGlade |
208 |
208 |
209 $(call get_src_http,https://bitbucket.org/wxglade/wxglade/get,034d891cc947.zip)\ |
209 $(call get_src_http,https://bitbucket.org/wxglade/wxglade/get,034d891cc947.zip)\ |
210 unzip -d $(tmp) $$dld |
210 unzip -d $(tmp) $$dld |
211 mv $(tmp)/wxglade-wxglade-034d891cc947 $(pysite)/wxglade |
211 mv $(tmp)/wxglade-wxglade-034d891cc947 $(pysite)/wxglade |
212 |
212 |
213 # Pyro |
213 # Pyro |
214 $(call get_src_pypi,source/P/Pyro,Pyro-3.9.1.tar.gz)\ |
214 $(call get_src_pypi,source/P/Pyro,Pyro-3.9.1.tar.gz)\ |
215 tar -C $(tmp) -xzf $$dld |
215 tar -C $(tmp) -xzf $$dld |
242 |
242 |
243 examples: |build |
243 examples: |build |
244 rm -rf examples |
244 rm -rf examples |
245 mkdir -p examples |
245 mkdir -p examples |
246 |
246 |
247 beremiz: | build examples |
247 beremiz: | build examples |
248 $(call get_src_hg,build/beremiz) |
248 $(call get_src_hg,build/beremiz) |
249 $(call tweak_beremiz_targets) |
249 $(call tweak_beremiz_targets) |
250 rm -rf examples/canopen_tests |
250 rm -rf examples/canopen_tests |
251 mkdir -p examples/canopen_tests |
251 mkdir -p examples/canopen_tests |
252 mv build/beremiz/tests/canopen_* examples/canopen_tests |
252 mv build/beremiz/tests/canopen_* examples/canopen_tests |
280 |
280 |
281 targets=python mingw matiec beremiz |
281 targets=python mingw matiec beremiz |
282 Beremiz-$(version).exe: $(targets) $(src)/license.txt $(src)/install.nsi $(targets_ex) |
282 Beremiz-$(version).exe: $(targets) $(src)/license.txt $(src)/install.nsi $(targets_ex) |
283 sed -e 's/\$$BVERSION/$(version)/g' $(src)/license.txt > build/license.txt |
283 sed -e 's/\$$BVERSION/$(version)/g' $(src)/license.txt > build/license.txt |
284 sed -e 's/\$$BVERSION/$(version)/g' $(src)/install.nsi |\ |
284 sed -e 's/\$$BVERSION/$(version)/g' $(src)/install.nsi |\ |
285 sed -e 's/\$$BEXTENSIONS/$(extensions)/g' |\ |
285 sed -e 's/\$$BEXTENSIONS/$(extensions)/g' |\ |
286 makensis - |
286 makensis - |
287 |
287 |
288 clean_installer: |
288 clean_installer: |
289 rm -rf build Beremiz-$(version).exe $(targets) $(targets_ex) |
289 rm -rf build Beremiz-$(version).exe $(targets) $(targets_ex) |
290 |
290 |
291 |
291 |