discount one to min pos args for classmethod (complementary fix for #454)
[cython.git] / Makefile
index f6ec12703e338c6567607e776fa9eb5f56654c73..337825cf1ded4bbc577c1066d287c4db623c6917 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,35 @@
 PYTHON?=python
+REPO = http://hg.cython.org/cython-devel
 
 all:    local 
 
-local: 
-        ${PYTHON} setup.py build_ext --inplace
+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 .
+       rm -rf $(TMPDIR)
+
+repo: .hg
+
 
 clean:
        @echo Cleaning Source
        @rm -fr build
        @rm -f *.pyc */*.pyc */*/*.pyc 
+       @rm -f *.so */*.so */*/*.so 
+       @rm -f *.pyd */*.pyd */*/*.pyd 
        @rm -f *~ */*~ */*/*~
        @rm -f core */core
-       @rm -f Cython/Plex/Scanners.{so,pyd}
+       @rm -f Cython/Compiler/*.c
+       @rm -f Cython/Plex/*.c
+       @rm -f Cython/Runtime/refnanny.c
        @(cd Demos; $(MAKE) clean)
 
 testclean: