Updated Makefile to build py2exe.
[goodfet] / client / Makefile
1
2
3 link:
4         rm -f /usr/local/bin/goodfet.* /usr/local/bin/goodfet
5         rm -rf *~
6         mkdir -p /usr/local/bin
7         ln -s `pwd`/goodfet `pwd`/goodfet.* /usr/local/bin/
8 install:
9         echo "Try 'make link' instead."
10
11 py2exepub:
12 #publish the windows build.
13         rsync --exclude .svn -ave ssh tmp/goodfet.zip travisutk,goodfet@web.sourceforge.net:htdocs/dist/gfwin.zip
14 py2exe:
15 #Run this from Win32 with Python, py2exe, py-serial, and GNU utils.
16 #MSP430 Client
17         sed s/PYTHONCONSOLE/goodfet.msp430/ <p2e.txt >setup.py
18         python setup.py py2exe
19         mv dist/goodfet.exe dist/gf430.exe
20 #Monitor
21         sed s/PYTHONCONSOLE/goodfet.monitor/ <p2e.txt >setup.py
22         python setup.py py2exe
23         mv dist/goodfet.exe dist/gfmon.exe
24 #BSL
25         sed s/PYTHONCONSOLE/goodfet.bsl/ <p2e.txt >setup.py
26         python setup.py py2exe
27         mv dist/goodfet.exe dist/gfbsl.exe
28 #BSL
29         sed s/PYTHONCONSOLE/goodfet.bsl/ <p2e.txt >setup.py
30         python setup.py py2exe
31         mv dist/goodfet.exe dist/gfbsl.exe
32 #AVR
33         sed s/PYTHONCONSOLE/goodfet.avr/ <p2e.txt >setup.py
34         python setup.py py2exe
35         mv dist/goodfet.exe dist/gfavr.exe
36 #Chipcon
37         sed s/PYTHONCONSOLE/goodfet.cc/ <p2e.txt >setup.py
38         python setup.py py2exe
39         mv dist/goodfet.exe dist/gfcc.exe
40 #SPI Flash
41         sed s/PYTHONCONSOLE/goodfet.spiflash/ <p2e.txt >setup.py
42         python setup.py py2exe
43         mv dist/goodfet.exe dist/gfspi.exe
44 #Goodfet.  This must be last.
45         sed s/PYTHONCONSOLE/goodfet/ <p2e.txt >setup.py
46         python setup.py py2exe
47 #       mv dist/goodfet.exe dist/goodfet.exe
48 #Now package it all.
49         rm -rf tmp
50         mkdir tmp\goodfet
51         mv dist/* tmp/goodfet/
52         cd tmp && zip -r goodfet.zip goodfet
53