Merge remote-tracking branch 'origin/pycurl' into planetlab-4_0-branch
[plcapi.git] / pycurl / Makefile
1 #
2 # to use a specific python version call
3 #   `make PYTHON=python2.2'
4 #
5
6 SHELL = /bin/sh
7
8 PYTHON = python2.3
9 PYTHON = python
10
11 all build:
12         $(PYTHON) setup.py build
13
14 build-7.10.8:
15         $(PYTHON) setup.py build --curl-config=/home/hosts/localhost/packages/curl-7.10.8/bin/curl-config
16
17 test: build
18         $(PYTHON) tests/test_internals.py -q
19
20 # (needs GNU binutils)
21 strip: build
22         strip -p --strip-unneeded build/lib*/*.so
23         chmod -x build/lib*/*.so
24
25 install install_lib:
26         $(PYTHON) setup.py $@
27
28 clean:
29         -rm -rf build dist
30         -rm -f *.pyc *.pyo */*.pyc */*.pyo */*/*.pyc */*/*.pyo
31         -rm -f MANIFEST
32         cd src && $(MAKE) clean
33
34 distclean: clean
35
36 maintainer-clean: distclean
37
38 dist sdist: distclean
39         $(PYTHON) setup.py sdist
40
41 # target for maintainer
42 windist: distclean
43         rm -rf build
44         python2.2 setup.py bdist_wininst
45         rm -rf build
46         python2.3 setup.py bdist_wininst
47         rm -rf build
48         python2.4 setup.py bdist_wininst
49         rm -rf build
50         python2.2 setup_win32_ssl.py bdist_wininst
51         rm -rf build
52         python2.3 setup_win32_ssl.py bdist_wininst
53         rm -rf build
54         python2.4 setup_win32_ssl.py bdist_wininst
55         rm -rf build
56
57
58 .PHONY: all build test strip install install_lib clean distclean maintainer-clean dist sdist windist
59
60 .NOEXPORT: