X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=Makefile;h=7a95311b3052258fc06f55b18e95a072f26e09d2;hb=4489218558f3d875c758a3423683f0d8243430b3;hp=6b7b8a1575708a686d8b5201aeccb31d6b510ffe;hpb=ec2d9200fd962c255880ffae047e3fb8ff09e01f;p=cython.git diff --git a/Makefile b/Makefile index 6b7b8a15..7a95311b 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,37 @@ PYTHON?=python +REPO = git://github.com/cython/cython.git + +all: local + +local: + ${PYTHON} setup.py build_ext --inplace + +.git: REV := $(shell cat .gitrev) +.git: TMPDIR := $(shell mktemp -d tmprepo.XXXXXX) +.git: + rm -rf $(TMPDIR) + git clone $(REPO) $(TMPDIR) + cd $(TMPDIR); git checkout -b working $(REV) + mv $(TMPDIR)/.hgtags . + mv $(TMPDIR)/.hgignore . + mv $(TMPDIR)/.git . + mv $(TMPDIR)/Doc/s5 Doc/s5 + rm -rf $(TMPDIR) + +repo: .git + clean: @echo Cleaning Source @rm -fr build - @rm -f *.pyc */*.pyc */*/*.pyc + @rm -f *.py[co] */*.py[co] */*/*.py[co] */*/*/*.py[co] + @rm -f *.so */*.so */*/*.so + @rm -f *.pyd */*.pyd */*/*.pyd @rm -f *~ */*~ */*/*~ @rm -f core */core + @rm -f Cython/Compiler/*.c + @rm -f Cython/Plex/*.c + @rm -f Cython/Runtime/refnanny.c @(cd Demos; $(MAKE) clean) testclean: @@ -14,9 +40,5 @@ testclean: 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