freeze: include FreeBSD fix from Python's main()
[cython.git] / Makefile
index 37380a2a2c1705953e2aca41664606b3d48e6f04..6fdb6f96256d4e541723e5a6a4ae79a194b487b8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,21 @@
 PYTHON?=python
 
+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: