source: trunk/Makefile @ 29

Revision 29, 1.3 KB checked in by xi, 9 years ago (diff)

Done! Almost done!!!

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