freeze: include FreeBSD fix from Python's main()
[cython.git] / Makefile
index 81aa68b4ed14f9ff564bb1e72e0d9895246e9b9c..6fdb6f96256d4e541723e5a6a4ae79a194b487b8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,23 +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
+       ${PYTHON} runtests.py -vv
 
 test3: testclean
        ${PYTHON} runtests.py --no-cleanup
-       python3.0 runtests.py --no-cython
+       python3.0 runtests.py -vv --no-cython
+
+s5:
+       $(MAKE) -C Doc/s5 slides