fix xml test result generation to restrict the captured stdout/stderr to the current...
[cython.git] / Makefile
index 73a57dd4e9dd5b0353bc9521823b5cfba696177a..964204fd47d47a54965e7b7c37d1cc9b463565f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,41 @@
-VERSION = 0.9.6.3
 PYTHON?=python
+REPO = git://github.com/cython/cython.git
+
+all:    local 
+
+local:
+       ${PYTHON} setup.py build_ext --inplace
+
+.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: .git
 
-version:
-       @echo "Setting version to $(VERSION)"
-       @echo "version = '$(VERSION)'" > Cython/Compiler/Version.py
 
 clean:
        @echo Cleaning Source
-       @rm -f *.pyc */*.pyc */*/*.pyc 
+       @rm -fr build
+       @rm -f *.py[co] */*.py[co] */*/*.py[co] */*/*/*.py[co]
+       @rm -f *.so */*.so */*/*.so 
+       @rm -f *.pyd */*.pyd */*/*.pyd 
        @rm -f *~ */*~ */*/*~
        @rm -f core */core
+       @rm -f Cython/Compiler/*.c
+       @rm -f Cython/Plex/*.c
+       @rm -f Cython/Runtime/refnanny.c
        @(cd Demos; $(MAKE) clean)
 
 testclean:
        rm -fr BUILD
 
 test:  testclean
-       ${PYTHON} runtests.py
+       ${PYTHON} runtests.py -vv
+
+s5:
+       $(MAKE) -C Doc/s5 slides