merged in Vitja's tab removals
[cython.git] / Makefile
1 PYTHON?=python
2 REPO = git://github.com/cython/cython.git
3
4 all:    local 
5
6 local:
7         ${PYTHON} setup.py build_ext --inplace
8
9 .git: REV := $(shell cat .gitrev)
10 .git: TMPDIR := $(shell mktemp -d tmprepo.XXXXXX)
11 .git: 
12         rm -rf $(TMPDIR)
13         git clone $(REPO) $(TMPDIR)
14         cd $(TMPDIR); git checkout -b working $(REV)
15         mv $(TMPDIR)/.hgtags .
16         mv $(TMPDIR)/.hgignore .
17         mv $(TMPDIR)/.git .
18         mv $(TMPDIR)/Doc/s5 Doc/s5
19         rm -rf $(TMPDIR)
20
21 repo: .git
22
23
24 clean:
25         @echo Cleaning Source
26         @rm -fr build
27         @rm -f *.py[co] */*.py[co] */*/*.py[co] */*/*/*.py[co]
28         @rm -f *.so */*.so */*/*.so 
29         @rm -f *.pyd */*.pyd */*/*.pyd 
30         @rm -f *~ */*~ */*/*~
31         @rm -f core */core
32         @rm -f Cython/Compiler/*.c
33         @rm -f Cython/Plex/*.c
34         @rm -f Cython/Runtime/refnanny.c
35         @(cd Demos; $(MAKE) clean)
36
37 testclean:
38         rm -fr BUILD
39
40 test:   testclean
41         ${PYTHON} runtests.py -vv
42
43 s5:
44         $(MAKE) -C Doc/s5 slides