string literal parsing
[cython.git] / Makefile
index 1ac8bc527c6132c7c32a8b326adc73d7ed111c06..c0b74e7ba8da5bc048e25deb97e13d3b83ff129e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,42 @@
-VERSION = 0.9.6.3
+PYTHON?=python
+REPO = http://hg.cython.org/cython-devel
+
+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 .
+       rm -rf $(TMPDIR)
+
+repo: .hg
 
-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 -vv
+
+s5:
+       $(MAKE) -C Doc/s5 slides