1 PYTHON?=python 2 REPO = git://github.com/cython/cython.git 3 4 all: local 5 6 local: 7 ${PYTHON} setup.py build_ext --inplace 8 9 TMPDIR = .repo_tmp 10 .git: .gitrev 11 rm -rf $(TMPDIR) 12 git clone -n $(REPO) $(TMPDIR) 13 cd $(TMPDIR) && git reset -q "$(shell cat .gitrev)" 14 mv $(TMPDIR)/.git . 15 rm -rf $(TMPDIR) 16 git ls-files -d | xargs git checkout -- 17 18 repo: .git 19 20 21 clean: 22 @echo Cleaning Source 23 @rm -fr build 24 @rm -f *.py[co] */*.py[co] */*/*.py[co] */*/*/*.py[co] 25 @rm -f *.so */*.so */*/*.so 26 @rm -f *.pyd */*.pyd */*/*.pyd 27 @rm -f *~ */*~ */*/*~ 28 @rm -f core */core 29 @rm -f Cython/Compiler/*.c 30 @rm -f Cython/Plex/*.c 31 @rm -f Cython/Runtime/refnanny.c 32 @(cd Demos; $(MAKE) clean) 33 34 testclean: 35 rm -fr BUILD 36 37 test: testclean 38 ${PYTHON} runtests.py -vv 39 40 s5: 41 $(MAKE) -C Doc/s5 slides 42