From: Robert Bradshaw Date: Sun, 22 Nov 2009 10:29:15 +0000 (-0800) Subject: Makefile target for repo. X-Git-Tag: 0.12.1~122^2~1 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a9d3cbb1a7dcf49cd22d7160574f69da0822a679;p=cython.git Makefile target for repo. --- diff --git a/Makefile b/Makefile index d77f2990..bc70776c 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,23 @@ PYTHON?=python +REPO = http://hg.cython.org/cython-devel all: local local: ${PYTHON} setup.py build_ext --inplace +.hg: REV := $(shell cat .hgrev) +.hg: TMPDIR := $(shell mktemp -d tmprepo.XXXXXX) +.hg: + hg clone --rev $(REV) $(REPO) $(TMPDIR) + hg -R $(TMPDIR) update + mv $(TMPDIR)/.hg . + mv $(TMPDIR)/.hgtags . + rm -rf $(TMPDIR) + +repo: .hg + + clean: @echo Cleaning Source @rm -fr build