fix xml test result generation to restrict the captured stdout/stderr to the current...
[cython.git] / Makefile
index 337825cf1ded4bbc577c1066d287c4db623c6917..964204fd47d47a54965e7b7c37d1cc9b463565f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,28 +1,27 @@
 PYTHON?=python
-REPO = http://hg.cython.org/cython-devel
+REPO = git://github.com/cython/cython.git
 
 all:    local 
 
 local:
        ${PYTHON} setup.py build_ext --inplace
 
-.hg: REV := $(shell cat .hgrev)
-.hg: TMPDIR := $(shell mktemp -d tmprepo.XXXXXX)
-.hg: 
-       hg clone --rev $(REV) $(REPO) $(TMPDIR)
-       hg -R $(TMPDIR) update
-       mv $(TMPDIR)/.hg .
-       mv $(TMPDIR)/.hgignore .
-       mv $(TMPDIR)/.hgtags .
+.git: REV := $(shell cat .gitrev)
+.git: TMPDIR := $(shell mktemp -d tmprepo.XXXXXX)
+.git: 
+       git clone $(REPO) $(TMPDIR)
+       cd $(TMPDIR); git checkout -b working $(REV)
+       mv $(TMPDIR)/{.git,.hgtags,.hgignore} .
+       mv $(TMPDIR)/Doc/s5 Doc/s5
        rm -rf $(TMPDIR)
 
-repo: .hg
+repo: .git
 
 
 clean:
        @echo Cleaning Source
        @rm -fr build
-       @rm -f *.pyc */*.pyc */*/*.pyc 
+       @rm -f *.py[co] */*.py[co] */*/*.py[co] */*/*/*.py[co]
        @rm -f *.so */*.so */*/*.so 
        @rm -f *.pyd */*.pyd */*/*.pyd 
        @rm -f *~ */*~ */*/*~
@@ -38,9 +37,5 @@ testclean:
 test:  testclean
        ${PYTHON} runtests.py -vv
 
-test3: testclean
-       ${PYTHON} runtests.py --no-cleanup
-       python3.0 runtests.py -vv --no-cython
-
 s5:
        $(MAKE) -C Doc/s5 slides