-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (33 loc) · 1.71 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
PYMAC = python-2.7.3-macosx10.6.dmg
MPLMAC = matplotlib-1.2.0-py2.7-python.org-macosx10.6.dmg
NPMAC = numpy-1.6.2-py2.7-python.org-macosx10.6.dmg
PYWIN = python-2.7.3.msi
NPWIN = numpy-1.7.0-win32-superpack-python2.7.exe
PY2EXE = py2exe-0.6.9.win32-py2.7.exe
PYGUI = PyGUI-2.5.3.tar.gz
WIN32 = pywin32-218.win32-py2.7.exe
PROJWIN = pyproj-1.9.3.win32-py2.7.exe
# TODO Wix: http://wix.codeplex.com/downloads/get/582218
macdeps:
mkdir -p macdeps
cd macdeps; if ! [ -f $(MPLMAC) ]; then curl -O -C - "https://github.com/downloads/matplotlib/matplotlib/$(MPLMAC)"; fi
cd macdeps; if ! [ -f $(PYMAC) ]; then curl -O "http://python.org/ftp/python/2.7.3/$(PYMAC)"; fi
cd macdeps; if ! [ -f $(NPMAC) ]; then curl -L -o $(NPMAC) "http://sourceforge.net/projects/numpy/files/NumPy/1.6.2/$(NPMAC)/download"; fi
windeps:
mkdir -p windeps
cd windeps; if ! [ -f $(PYWIN) ]; then curl -O "http://python.org/ftp/python/2.7.3/$(PYWIN)"; fi
cd windeps; if ! [ -f $(NPWIN) ]; then curl -L -o $(NPWIN) "http://sourceforge.net/projects/numpy/files/NumPy/1.7.0/$(NPWIN)/download"; fi
cd windeps; if ! [ -f $(WIN32) ]; then curl -L -o $(WIN32) "http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/$(WIN32)/download"; fi
cd windeps; if ! [ -f $(PY2EXE) ]; then curl -L -o $(PY2EXE) "http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/$(PY2EXE)/download"; fi
cd windeps; if ! [ -f $(PYGUI) ]; then curl -O "http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/$(PYGUI)"; fi
cd windeps; if ! [ -f $(PROJWIN) ]; then curl -O "http://pyproj.googlecode.com/files/$(PROJWIN)"; fi
clean:
rm -rf dist
rm -rf build
rm wix/XTF_Surveyor.msi
rm wix/installer.wixobj
rm wix/installer.wxs
rm *.pyc
installer:
build.cmd
.PHONY: macdeps windeps