Better makefile clean.
[cython.git] / Makefile
1 PYTHON?=python
2
3 all:    local 
4
5 local:
6         ${PYTHON} setup.py build_ext --inplace
7
8 clean:
9         @echo Cleaning Source
10         @rm -fr build
11         @rm -f *.pyc */*.pyc */*/*.pyc 
12         @rm -f *.so */*.so */*/*.so 
13         @rm -f *.pyd */*.pyd */*/*.pyd 
14         @rm -f *~ */*~ */*/*~
15         @rm -f core */core
16         @rm -f Cython/Compiler/*.c
17         @rm -f Cython/Plex/*.c
18         @rm -f Cython/Runtime/refnanny.c
19         @(cd Demos; $(MAKE) clean)
20
21 testclean:
22         rm -fr BUILD
23
24 test:   testclean
25         ${PYTHON} runtests.py -vv
26
27 test3:  testclean
28         ${PYTHON} runtests.py --no-cleanup
29         python3.0 runtests.py -vv --no-cython
30
31 s5:
32         $(MAKE) -C Doc/s5 slides