freeze: include FreeBSD fix from Python's main()
[cython.git] / Makefile
index 099ccfb8a1311f802122319910cac09b136e97fc..6fdb6f96256d4e541723e5a6a4ae79a194b487b8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,32 @@
-VERSION = 0.9.4.1
+PYTHON?=python
 
-version:
-       @echo "Setting version to $(VERSION)"
-       @echo "version = '$(VERSION)'" > Pyrex/Compiler/Version.py
+all:    local 
 
-#check_contents:
-#      @if [ ! -d Pyrex/Distutils ]; then \
-#              echo Pyrex/Distutils missing; \
-#              exit 1; \
-#      fi
+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