freeze: include FreeBSD fix from Python's main()
[cython.git] / Makefile
index 1ac8bc527c6132c7c32a8b326adc73d7ed111c06..6fdb6f96256d4e541723e5a6a4ae79a194b487b8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,32 @@
-VERSION = 0.9.6.3
+PYTHON?=python
 
-version:
-       @echo "Setting version to $(VERSION)"
-       @echo "version = '$(VERSION)'" > Cython/Compiler/Version.py
+all:    local 
+
+local:
+       ${PYTHON} setup.py build_ext --inplace
 
 clean:
        @echo Cleaning Source
+       @rm -fr build
        @rm -f *.pyc */*.pyc */*/*.pyc 
        @rm -f *~ */*~ */*/*~
        @rm -f core */core
+       @rm -f Cython/Compiler/Parsing.{c,so,pyd}
+       @rm -f Cython/Compiler/Scanning.{c,so,pyd}
+       @rm -f Cython/Compiler/Visitor.{c,so,pyd}
+       @rm -f Cython/Runtime/refnanny.{c,so,pyd}
+       @rm -f Cython/Plex/Scanners.{c,so,pyd}
        @(cd Demos; $(MAKE) clean)
+
+testclean:
+       rm -fr BUILD
+
+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