Bump version number.
[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         git clone $(REPO) $(TMPDIR)
13         cd $(TMPDIR); git checkout -b working $(REV)
14         mv $(TMPDIR)/{.git,.hgtags,.hgignore} .
15         mv $(TMPDIR)/Doc/s5 Doc/s5
16         rm -rf $(TMPDIR)
17
18 repo: .git
19
20
21 clean:
22         @echo Cleaning Source
23         @rm -fr build
24         @rm -f *.py[co] */*.py[co] */*/*.py[co] */*/*/*.py[co]
25         @rm -f *.so */*.so */*/*.so 
26         @rm -f *.pyd */*.pyd */*/*.pyd 
27         @rm -f *~ */*~ */*/*~
28         @rm -f core */core
29         @rm -f Cython/Compiler/*.c
30         @rm -f Cython/Plex/*.c
31         @rm -f Cython/Runtime/refnanny.c
32         @(cd Demos; $(MAKE) clean)
33
34 testclean:
35         rm -fr BUILD
36
37 test:   testclean
38         ${PYTHON} runtests.py -vv
39
40 s5:
41         $(MAKE) -C Doc/s5 slides