From a9d3cbb1a7dcf49cd22d7160574f69da0822a679 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sun, 22 Nov 2009 02:29:15 -0800 Subject: [PATCH] Makefile target for repo. --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- 2.26.2