1PYTHON?=python 2REPO = git://github.com/cython/cython.git 3 4all: local 5 6local: 7 ${PYTHON} setup.py build_ext --inplace 8 9TMPDIR = .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 18repo: .git 19 20 21clean: 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 34testclean: 35 rm -fr BUILD 36 37test: testclean 38 ${PYTHON} runtests.py -vv 39 40s5: 41 $(MAKE) -C Doc/s5 slides 42