Edouard@0: #! gmake Edouard@0: Edouard@0: # This is Makefile for Beremiz installer Edouard@2: # andrej@14: # Invoke with "make -f path/to/Makefile" on a linux box Edouard@6: # in directory where build should happen. Edouard@6: # Edouard@6: # All those dependencies have to be installed : Edouard@6: # Edouard@6: # Windows installer : Edouard@6: # - wine (tested with 1.2 and 1.6. Fail with 1.4) Edouard@0: # - mingw32 Edouard@6: # - flex Edouard@6: # - bison Edouard@0: # - tar Edouard@0: # - unrar Edouard@0: # - wget Edouard@0: # - nsis Edouard@6: # - libtool Edouard@6: # - xmlstarlet Edouard@6: # - xsltproc Edouard@6: # - python-lxml Edouard@6: # Edouard@2: # WARNING : DISPLAY variable have to be defined to a valid X server Edouard@2: # in case it would be a problem, run : Edouard@2: # xvfb-run make -f /path/to/this/Makefile Edouard@0: andrej@16: version = 1.2-rc1 Edouard@0: Edouard@29: src := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) edouard@22: HGREMOTE ?= https://hg.beremiz.org/ edouard@28: HGROOT ?= $(abspath $(src)/..) Edouard@6: GITROOT := $(HGROOT) Edouard@6: DIST = Edouard@29: CPUS := `cat /proc/cpuinfo | grep -e 'processor\W*:\W*[[:digit:]]*' | nl -n ln | tail -n1 | cut -f1` Edouard@6: BLKDEV=/dev/null Edouard@0: andrej@12: andrej@12: CROSS_COMPILE=i686-w64-mingw32 edouard@19: CROSS_COMPILE_LIBS_DIR=$(shell dirname $(shell $(CROSS_COMPILE)-gcc -print-libgcc-file-name)) andrej@12: CC=$(CROSS_COMPILE)-gcc andrej@12: CXX=$(CROSS_COMPILE)-g++ andrej@12: andrej@12: define get_runtime_libs andrej@12: cp $(CROSS_COMPILE_LIBS_DIR)/libgcc_s_sjlj-1.dll $(1) andrej@12: cp $(CROSS_COMPILE_LIBS_DIR)/libstdc++-6.dll $(1) andrej@12: endef andrej@12: Edouard@0: distfiles = $(src)/distfiles Edouard@6: sfmirror = downloads Edouard@0: tmp := $(shell mktemp -d) Edouard@0: Edouard@6: define hg_get_archive edouard@22: test -d $(HGROOT)/`basename $(1)` || hg --cwd $(HGROOT) clone $(HGREMOTE)`basename $(1)` Edouard@6: hg -R $(HGROOT)/`basename $(1)` archive $(2) $(1) edouard@22: hg -R $(HGROOT)/`basename $(1)` id -i | sed 's/\+//' > $(1)/revision andrej@15: endef andrej@15: Edouard@0: define get_src_hg Edouard@6: rm -rf $(1) Edouard@6: $(call hg_get_archive, $(1), $(2)) Edouard@6: endef Edouard@6: Edouard@6: define get_src_git Edouard@6: rm -rf $(1) Edouard@0: mkdir $(1) Edouard@6: (cd $(GITROOT)/`basename $(1)`; git archive --format=tar $(2)) | tar -C $(1) -x Edouard@0: endef Edouard@0: Edouard@0: define get_src_http Edouard@5: dld=$(distfiles)/`echo $(2) | tr ' ()' '___'`;( ( [ -f $$dld ] || wget $(1)/$(2) -O $$dld ) && ( [ ! -f $$dld.md5 ] && (cd $(distfiles);md5sum `basename $$dld`) > $$dld.md5 || (cd $(distfiles);md5sum -c `basename $$dld.md5`) ) ) && Edouard@0: endef Edouard@0: Edouard@0: define get_src_pypi beltyukov@23: $(call get_src_http,https://pypi.python.org/packages/$(1),$(2)) Edouard@0: endef Edouard@0: Edouard@0: define get_src_sf edouard@22: $(call get_src_http,https://$(sfmirror).sourceforge.net/project/$(1),$(2)) Edouard@6: endef Edouard@6: Edouard@6: all: Beremiz-$(version).exe $(targets_add) Edouard@6: Edouard@6: Edouard@6: ifneq ("$(DIST)","") Edouard@6: include $(src)/$(DIST).mk Edouard@6: endif Edouard@6: Edouard@6: build: Edouard@6: rm -rf build Edouard@6: mkdir -p build Edouard@6: Edouard@6: # native toolchain, pre-built Edouard@0: mingwdir=build/mingw Edouard@8: Edouard@8: define get_mingw edouard@22: $(call get_src_sf,mingw/MinGW/Base/$(1),$(2)) tar -C $(mingwdir) -xf $$dld Edouard@8: endef Edouard@8: define get_msys edouard@22: $(call get_src_sf,mingw/MSYS/Base/$(1),$(2)) tar -C $(mingwdir) -xf $$dld Edouard@8: endef Edouard@6: mingw: |build Edouard@5: rm -rf $(mingwdir) Edouard@0: mkdir -p $(mingwdir) Edouard@0: # windows.h edouard@22: $(call get_mingw,w32api/w32api-5.0.1,w32api-5.0.1-mingw32-dev.tar.xz) Edouard@0: # mingw runtime edouard@22: $(call get_mingw,mingwrt/mingwrt-5.0.1,mingwrt-5.0.1-mingw32-dll.tar.xz) Edouard@0: # mingw headers and lib edouard@22: $(call get_mingw,mingwrt/mingwrt-5.0.1,mingwrt-5.0.1-mingw32-dev.tar.xz) Edouard@0: # binutils beltyukov@26: $(call get_mingw,binutils/binutils-2.28,binutils-2.28-1-mingw32-bin.tar.xz) Edouard@0: # C compiler edouard@22: $(call get_mingw,gcc/Version6/gcc-6.3.0,gcc-core-6.3.0-1-mingw32-bin.tar.xz) Edouard@0: # dependencies edouard@22: $(call get_mingw,gmp/gmp-6.1.2,libgmp-6.1.2-2-mingw32-dll-10.tar.xz) edouard@22: $(call get_mingw,mpc/mpc-1.0.3,libmpc-1.0.3-1-mingw32-dll-3.tar.xz) edouard@22: $(call get_mingw,mpfr/mpfr-3.1.5,libmpfr-3.1.5-1-mingw32-dll-4.tar.xz) edouard@22: $(call get_mingw,gettext/gettext-0.18.3.2-2,libintl-0.18.3.2-2-mingw32-dll-8.tar.xz) edouard@22: $(call get_mingw,gettext/gettext-0.18.3.2-2,libgettextpo-0.18.3.2-2-mingw32-dll-0.tar.xz) edouard@22: $(call get_mingw,libiconv/libiconv-1.14-3,libiconv-1.14-3-mingw32-dll.tar.lzma) edouard@22: Edouard@8: # make, bash, and dependencies edouard@22: $(call get_msys,bash/bash-3.1.23-1,bash-3.1.23-1-msys-1.0.18-bin.tar.xz) Edouard@8: $(call get_msys,coreutils/coreutils-5.97-3,coreutils-5.97-3-msys-1.0.13-bin.tar.lzma) edouard@22: $(call get_msys,libiconv/libiconv-1.14-1,libiconv-1.14-1-msys-1.0.17-bin.tar.lzma) edouard@22: $(call get_msys,libiconv/libiconv-1.14-1,libiconv-1.14-1-msys-1.0.17-dll-2.tar.lzma) edouard@22: $(call get_msys,gettext/gettext-0.18.1.1-1,libintl-0.18.1.1-1-msys-1.0.17-dll-8.tar.lzma) Edouard@8: $(call get_msys,regex/regex-1.20090805-2,libregex-1.20090805-2-msys-1.0.13-dll-1.tar.lzma) Edouard@8: $(call get_msys,termcap/termcap-0.20050421_1-2,libtermcap-0.20050421_1-2-msys-1.0.13-dll-0.tar.lzma) Edouard@8: $(call get_msys,make/make-3.81-3,make-3.81-3-msys-1.0.13-bin.tar.lzma) edouard@22: $(call get_msys,msys-core/msys-1.0.19-1,msysCORE-1.0.19-1-msys-1.0.19-bin.tar.xz) Edouard@8: $(call get_msys,termcap/termcap-0.20050421_1-2,libtermcap-0.20050421_1-2-msys-1.0.13-dll-0.tar.lzma) Edouard@8: touch $@ Edouard@0: Edouard@0: msiexec = WINEPREFIX=$(tmp) msiexec Edouard@0: wine = WINEPREFIX=$(tmp) wine Edouard@0: pydir = build/python Edouard@0: pysite = $(pydir)/Lib/site-packages Edouard@0: Edouard@29: OSSLVER=openssl-1.0.1p Edouard@29: M2CRVER=M2Crypto-0.22.6rc2 Edouard@29: MINGPFX=i686-w64-mingw32- Edouard@29: Edouard@6: python: |build Edouard@5: rm -rf $(pydir) Edouard@2: mkdir -p $(pydir) Edouard@29: Edouard@0: # Python Edouard@29: $(call get_src_http,http://www.python.org/ftp/python/2.7.3,python-2.7.3.msi)\ Edouard@0: $(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir) Edouard@29: Edouard@29: # WxPython 2.8 (needs running inno unpacker in wine) Edouard@0: $(call get_src_sf,innounp/innounp/innounp%200.36,innounp036.rar)\ Edouard@0: unrar e $$dld innounp.exe $(tmp) Edouard@0: $(call get_src_sf,wxpython/wxPython/2.8.12.1,wxPython2.8-win32-unicode-2.8.12.1-py27.exe)\ edouard@30: $(wine) $(tmp)/innounp.exe -d$(tmp)/wx28 -x $$dld edouard@30: cp -R $(tmp)/wx28/\{code_GetPythonDir\}/* $(pydir) edouard@30: cp -R $(tmp)/wx28/\{app\}/* $(pysite) Edouard@29: Edouard@29: # WxPython 3.0 (needs running inno unpacker in wine) Edouard@29: $(call get_src_sf,wxpython/wxPython/3.0.2.0,wxPython3.0-win32-3.0.2.0-py27.exe)\ edouard@30: $(wine) $(tmp)/innounp.exe -d$(tmp)/wx30 -x $$dld edouard@30: cp -R $(tmp)/wx30/\{code_GetPythonDir\}/* $(pydir) edouard@30: cp -R $(tmp)/wx30/\{app\}/* $(pysite) Edouard@29: Edouard@2: # wxPython fails if VC9.0 bullshit is not fully here. Edouard@2: $(call get_src_http,http://download.microsoft.com/download/1/1/1/1116b75a-9ec3-481a-a3c8-1777b5381140,vcredist_x86.exe)\ Edouard@2: cp $$dld $(tmp) Edouard@2: $(wine) $(tmp)/vcredist_x86.exe /qn /a Edouard@2: cp $(tmp)/drive_c/windows/winsxs/x86_Microsoft.VC90.CRT*/* $(pydir) Edouard@29: Edouard@6: # MathPlotLib Edouard@6: $(call get_src_http,https://github.com/downloads/matplotlib/matplotlib,matplotlib-1.2.0.win32-py2.7.exe)\ Edouard@6: unzip -d $(tmp)/mathplotlib $$dld ; [ $$? -eq 1 ] #silence error unziping .exe Edouard@6: cp -R $(tmp)/mathplotlib/PLATLIB/* $(pysite) Edouard@29: Edouard@0: # pywin32 Edouard@0: $(call get_src_sf,pywin32/pywin32/Build216,pywin32-216.win32-py2.7.exe)\ Edouard@0: unzip -d $(tmp)/pw32 $$dld ; [ $$? -eq 1 ] #silence error unziping .exe Edouard@0: cp -R $(tmp)/pw32/PLATLIB/* $(pysite) Edouard@29: Edouard@29: # zope.interface (twisted prereq) edouard@30: $(call get_src_pypi,9d/2d/beb32519c0bd19bda4ac38c34db417d563ee698518e582f951d0b9e5898b,zope.interface-4.3.2-py2.7-win32.egg)\ andrej@14: unzip -d $(tmp) $$dld Edouard@3: cp -R $(tmp)/zope $(pysite) Edouard@29: Edouard@29: # six (pyopenssl prereq) edouard@30: $(call get_src_pypi,67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a,six-1.11.0-py2.py3-none-any.whl)\ Edouard@29: unzip -d $(tmp) $$dld Edouard@29: cp -R $(tmp)/six.py $(pysite) Edouard@29: Edouard@29: # enum34 (cryptography prereq) edouard@30: $(call get_src_pypi,bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876,enum34-1.1.6.tar.gz)\ Edouard@29: tar -C $(tmp) -xzf $$dld Edouard@29: cp -R $(tmp)/enum34-1.1.6/enum $(pysite) Edouard@29: Edouard@29: # cryptography (pyopenssl prereq) edouard@30: $(call get_src_pypi,17/08/04dc376411968ac21f2e11a8d7d70e936a654172567672fa79710a137bd9,cryptography-2.1.4-cp27-cp27m-win32.whl)\ Edouard@29: unzip -d $(tmp) $$dld Edouard@29: cp -R $(tmp)/cryptography $(pysite) Edouard@29: Edouard@29: # pyopenssl (twisted/ssl prereq) edouard@30: $(call get_src_pypi,79/db/7c0cfe4aa8341a5fab4638952520d8db6ab85ff84505e12c00ea311c3516,pyOpenSSL-17.5.0-py2.py3-none-any.whl)\ Edouard@29: unzip -d $(tmp) $$dld Edouard@29: cp -R $(tmp)/OpenSSL $(pysite) Edouard@29: Edouard@29: # pyasn1 (service identity prereq) edouard@30: $(call get_src_pypi,eb/3d/b7d0fdf4a882e26674c68c20f40682491377c4db1439870f5b6f862f76ed,pyasn1-0.4.2.tar.gz)\ edouard@30: tar -C $(tmp) -xzf $$dld edouard@30: cp -R $(tmp)/pyasn1-0.4.2/pyasn1 $(pysite) Edouard@29: Edouard@29: # pyasn1-modules (service identity prereq) edouard@30: $(call get_src_pypi,ab/76/36ab0e099e6bd27ed95b70c2c86c326d3affa59b9b535c63a2f892ac9f45,pyasn1-modules-0.2.1.tar.gz)\ edouard@30: tar -C $(tmp) -xzf $$dld edouard@30: cp -R $(tmp)/pyasn1-modules-0.2.1/pyasn1_modules $(pysite) Edouard@29: Edouard@29: # characteristic (service identity prereq) edouard@30: $(call get_src_pypi,dc/66/54b7a4758ea44fbc93895c7745060005272560fb2c356f2a6f7448ef9a80,characteristic-14.3.0.tar.gz)\ Edouard@29: tar -C $(tmp) -xzf $$dld Edouard@29: cp -R $(tmp)/characteristic-14.3.0/characteristic.py $(pysite) Edouard@29: Edouard@29: # service identity (twisted prereq) edouard@30: $(call get_src_pypi,de/2a/cab6e30be82c8fcd2339ef618036720eda954cf05daef514e386661c9221,service_identity-17.0.0.tar.gz)\ edouard@30: tar -C $(tmp) -xzf $$dld edouard@30: cp -R $(tmp)/service_identity-17.0.0/src/service_identity $(pysite) Edouard@29: Edouard@29: # txaio (autobahn prereq) edouard@30: $(call get_src_pypi,d6/95/d0c67304515f352342bc8fd14e5a3e7ca924134608acb730916073b18464,txaio-2.8.2.tar.gz)\ edouard@30: tar -C $(tmp) -xzf $$dld edouard@30: cp -R $(tmp)/txaio-2.8.2/txaio $(pysite) Edouard@29: Edouard@29: # python-msgpack (autobahn prereq) edouard@30: $(call get_src_pypi,59/ca/b8048e184a2edb5b3cd46f38be130e87cbce77f4168ed62344bc33df3e1b,msgpack_python-0.4.8-cp27-cp27m-win32.whl)\ Edouard@29: unzip -d $(tmp) $$dld Edouard@29: cp -R $(tmp)/msgpack $(pysite) Edouard@29: Edouard@29: # u-msgpack-python (autobahn prereq) edouard@30: $(call get_src_pypi,b8/ff/5730f61767d5acecac103343d66ebf631ebd672fa14e50472f05545749c2,u-msgpack-python-2.4.1.tar.gz)\ edouard@30: tar -C $(tmp) -xzf $$dld edouard@30: cp -R $(tmp)/u-msgpack-python-2.4.1/umsgpack.py $(pysite) Edouard@29: Edouard@29: # cffi (cryptography prereq) edouard@30: $(call get_src_pypi,5e/67/01ae6ae50d168d3b92f2a80bf62e07537171d0a1938c8bceb7e64d36829f,cffi-1.11.2-cp27-cp27m-win32.whl)\ Edouard@29: unzip -d $(tmp) $$dld Edouard@29: cp -R $(tmp)/cffi $(tmp)/_cffi_backend.pyd $(pysite) Edouard@29: Edouard@0: # Twisted edouard@30: $(call get_src_pypi,fe/cb/97504d68c2f4300fb121f700cc2fae10e1856ba043e964acfab02e120835,Twisted-17.9.0-cp27-cp27m-win32.whl)\ Edouard@29: unzip -d $(tmp) $$dld Edouard@29: cp -R $(tmp)/twisted $(pysite) Edouard@29: Edouard@29: # Autobahn edouard@30: $(call get_src_pypi,e4/2e/01a64212b1eb580d601fa20f146c962235e3493795f46e3b254597ec635d,autobahn-17.10.1.tar.gz)\ edouard@30: tar -C $(tmp) -xzf $$dld edouard@30: cp -R $(tmp)/autobahn-17.10.1/autobahn $(pysite) Edouard@29: Edouard@0: # Nevow Edouard@0: $(call get_src_pypi,source/N/Nevow,Nevow-0.10.0.tar.gz)\ Edouard@6: tar -C $(tmp) -xzf $$dld Edouard@0: for i in nevow formless twisted; do cp -R $(tmp)/Nevow-0.10.0/$$i $(pysite); done Edouard@29: Edouard@0: # Numpy edouard@30: $(call get_src_pypi,fd/32/196073188f5b8b464e0fabb470f971fa5dcd91b55726a43b40b008212358,numpy-1.13.3-2-cp27-none-win32.whl)\ edouard@30: unzip -d $(tmp) $$dld edouard@30: cp -R $(tmp)/numpy/* $(pysite) Edouard@29: Edouard@0: # SimpleJson Edouard@0: $(call get_src_pypi,source/s/simplejson,simplejson-2.2.1.tar.gz)\ Edouard@6: tar -C $(tmp) -xzf $$dld Edouard@0: cp -R $(tmp)/simplejson-2.2.1/simplejson/ $(pysite) Edouard@29: andrej@21: # Zeroconf andrej@21: $(call get_src_pypi,6b/88/48dbe88b10098f98acef33218763c5630b0081c7fd0849ab4793b1e9b6d3,zeroconf-0.19.1-py2.py3-none-any.whl)\ andrej@21: unzip -d $(tmp)/zeroconf $$dld andrej@21: cp -R $(tmp)/zeroconf/* $(pysite) Edouard@29: andrej@21: # netifaces andrej@21: $(call get_src_pypi,05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129,netifaces-0.10.6-py2.7-win32.egg)\ andrej@21: unzip -d $(tmp)/netifaces $$dld andrej@21: cp -R $(tmp)/netifaces/* $(pysite) Edouard@29: Edouard@0: # WxGlade andrej@10: $(call get_src_http,https://bitbucket.org/wxglade/wxglade/get,034d891cc947.zip)\ andrej@14: unzip -d $(tmp) $$dld andrej@10: mv $(tmp)/wxglade-wxglade-034d891cc947 $(pysite)/wxglade Edouard@29: Edouard@0: # Pyro edouard@30: $(call get_src_pypi,61/68/0978adae315261b87acd216517c2c7f00780396e4d1426c5412458c6a28f,Pyro-3.16.tar.gz)\ edouard@30: tar -C $(tmp) -xzf $$dld edouard@30: mv $(tmp)/Pyro-3.16/Pyro $(pysite) edouard@30: edouard@30: # Lxml edouard@30: $(call get_src_pypi,c7/e6/26a600d9828554ca9de35d3d1daf3779028bea37025f3dd25e9d58d63bac,lxml-4.1.1-cp27-cp27m-win32.whl)\ edouard@30: unzip -d $(tmp) $$dld edouard@30: cp -R $(tmp)/lxml/* $(pysite) Edouard@29: Edouard@29: # Build Openssl Edouard@29: $(call get_src_http,https://openssl.org/source,$(OSSLVER).tar.gz)\ Edouard@29: tar -C $(tmp) -xzf $$dld Edouard@29: cd $(tmp)/$(OSSLVER); \ Edouard@29: CC=$(MINGPFX)gcc ./Configure mingw && \ Edouard@29: make all build-shared CROSS_COMPILE=$(MINGPFX) SHARED_LDFLAGS=-static-libgcc Edouard@29: Edouard@29: # Build M2crypto Edouard@29: $(call get_src_pypi,source/M/M2Crypto,$(M2CRVER).tar.gz)\ Edouard@29: tar -C $(tmp) -xzf $$dld Edouard@29: cd $(tmp)/$(M2CRVER); \ Edouard@29: patch -p1 < $(src)/M2Crypto-mingw-cross-compile-fix.patch && \ Edouard@29: PYTHONLIB=$(abspath $(pydir))/libs \ Edouard@29: PYTHONINC=$(abspath $(pydir))/include/ \ Edouard@29: MINGCCPREFIX=$(MINGPFX) \ Edouard@29: python setup.py build build_ext \ Edouard@29: --openssl=$(tmp)/$(OSSLVER) -cmingw32 Edouard@29: Edouard@29: # Copy openssl dlls directly in M2Crypto package directory Edouard@29: cp -a $(tmp)/$(OSSLVER)/*.dll $(tmp)/$(M2CRVER)/build/lib.win32-2.7/M2Crypto Edouard@29: Edouard@29: # Move result into python site packages Edouard@29: mv $(tmp)/$(M2CRVER)/build/lib.win32-2.7/M2Crypto $(pysite) Edouard@29: Edouard@6: touch $@ Edouard@0: Edouard@0: matiecdir = build/matiec Edouard@6: matiec: |build Edouard@0: $(call get_src_hg,$(tmp)/matiec) Edouard@0: cd $(tmp)/matiec ;\ Edouard@6: autoreconf;\ andrej@12: automake --add-missing;\ andrej@12: ./configure --host=$(CROSS_COMPILE);\ Edouard@0: make -j$(CPUS); Edouard@6: rm -rf $(matiecdir) Edouard@6: mkdir -p $(matiecdir) Edouard@0: mv $(tmp)/matiec/*.exe $(matiecdir) Edouard@29: andrej@12: # install necessary shared libraries from local cross-compiler andrej@12: $(call get_runtime_libs,$(matiecdir)) Edouard@29: Edouard@0: mv $(tmp)/matiec/lib $(matiecdir) Edouard@6: touch $@ Edouard@6: Edouard@6: examples: |build Edouard@6: rm -rf examples Edouard@6: mkdir -p examples Edouard@6: andrej@14: beremiz: | build examples Edouard@0: $(call get_src_hg,build/beremiz) Edouard@29: $(call tweak_beremiz_source) Edouard@6: rm -rf examples/canopen_tests Edouard@6: mkdir -p examples/canopen_tests Edouard@6: mv build/beremiz/tests/canopen_* examples/canopen_tests Edouard@6: rm -rf examples/base_tests Edouard@6: mkdir -p examples/base_tests Edouard@6: mv build/beremiz/tests/* examples/base_tests Edouard@6: touch $@ Edouard@6: Edouard@6: CFbuild = build/CanFestival-3 Edouard@6: CFconfig = $(CFbuild)/objdictgen/canfestival_config.py Edouard@6: canfestival: mingw Edouard@6: rm -rf $(CFbuild) Edouard@6: $(call get_src_hg,$(CFbuild)) Edouard@6: cd $(CFbuild); \ Edouard@6: ./configure --can=tcp_win32 \ andrej@12: --cc=$(CC) \ andrej@12: --cxx=$(CXX) \ Edouard@6: --target=win32 \ Edouard@6: --wx=0 Edouard@6: $(MAKE) -C $(CFbuild) Edouard@6: cd $(CFbuild); find . -name "*.o" -exec rm {} ';' #remove object files only Edouard@6: touch $@ Edouard@6: Edouard@6: targets=python mingw matiec beremiz Edouard@6: Beremiz-$(version).exe: $(targets) $(src)/license.txt $(src)/install.nsi $(targets_ex) Edouard@0: sed -e 's/\$$BVERSION/$(version)/g' $(src)/license.txt > build/license.txt Edouard@6: sed -e 's/\$$BVERSION/$(version)/g' $(src)/install.nsi |\ andrej@14: sed -e 's/\$$BEXTENSIONS/$(extensions)/g' |\ andrej@14: makensis - andrej@14: Edouard@6: clean_installer: Edouard@6: rm -rf build Beremiz-$(version).exe $(targets) $(targets_ex) Edouard@6: Edouard@6: