source: trunk/Makefile @ 28

Revision 28, 1.2 KB checked in by xi, 9 years ago (diff)

Add make targets for building windows binary packages.

Line 
1
2.PHONY: default build force install test clean  \
3        dist-win dist-win-2.2 dist-win-2.3 dist-win-2.4
4
5PYTHON=/usr/bin/python
6TEST=
7PARAMETERS=
8
9default: build README.html
10
11build:
12        ${PYTHON} setup.py build ${PARAMETERS}
13
14force:
15        ${PYTHON} setup.py build -f ${PARAMETERS}
16
17install: build
18        ${PYTHON} setup.py install ${PARAMETERS}
19
20test: build
21        ${PYTHON} tests/test_build.py -v ${TEST}
22
23clean:
24        ${PYTHON} setup.py clean -a
25
26dist-win: dist-win-2.2 dist-win-2.3 dist-win-2.4
27
28dist-win-2.2: PYTHON=/c/Python22/python
29dist-win-2.2: PARAMETERS=--compiler=mingw32
30dist-win-2.2:
31        ${PYTHON} setup.py build ${PARAMETERS}
32        ${PYTHON} setup.py bdist_wininst
33
34dist-win-2.3: PYTHON=/c/Python23/python
35dist-win-2.3: PARAMETERS=--compiler=mingw32
36dist-win-2.3:
37        ${PYTHON} setup.py build ${PARAMETERS}
38        ${PYTHON} setup.py bdist_wininst --skip-build --target-version=2.3
39
40dist-win-2.4: PYTHON=/c/Python24/python
41dist-win-2.4: PARAMETERS=--compiler=mingw32
42dist-win-2.4:
43        ${PYTHON} setup.py build ${PARAMETERS}
44        ${PYTHON} setup.py bdist_wininst --skip-build --target-version=2.4
45
46README.html: README.txt
47        rest2html --embed-stylesheet --stylesheet-path=/usr/share/python-docutils/stylesheets/default.css README.txt README.html
Note: See TracBrowser for help on using the repository browser.