2 # to use a specific python version call
3 # `make PYTHON=python2.2'
12 $(PYTHON) setup.py build
15 $(PYTHON) setup.py build --curl-config=/home/hosts/localhost/packages/curl-7.10.8/bin/curl-config
18 $(PYTHON) tests/test_internals.py -q
20 # (needs GNU binutils)
22 strip -p --strip-unneeded build/lib*/*.so
23 chmod -x build/lib*/*.so
30 -rm -f *.pyc *.pyo */*.pyc */*.pyo */*/*.pyc */*/*.pyo
32 cd src && $(MAKE) clean
36 maintainer-clean: distclean
39 $(PYTHON) setup.py sdist
41 # target for maintainer
44 python2.2 setup.py bdist_wininst
46 python2.3 setup.py bdist_wininst
48 python2.4 setup.py bdist_wininst
50 python2.2 setup_win32_ssl.py bdist_wininst
52 python2.3 setup_win32_ssl.py bdist_wininst
54 python2.4 setup_win32_ssl.py bdist_wininst
58 .PHONY: all build test strip install install_lib clean distclean maintainer-clean dist sdist windist