cython-devel

changeset 2688:4e489685efbd

Makefile target for repo.
author Robert Bradshaw <robertwb@math.washington.edu>
date Sun Nov 22 02:29:15 2009 -0800 (2 years ago)
parents 76a814a1fc57
children 8c3e75a60e4b
files Makefile
line diff
1.1 --- a/Makefile Sat Nov 21 16:28:04 2009 -0800 1.2 +++ b/Makefile Sun Nov 22 02:29:15 2009 -0800 1.3 @@ -1,10 +1,23 @@ 1.4 PYTHON?=python 1.5 +REPO = http://hg.cython.org/cython-devel 1.6 1.7 all: local 1.8 1.9 local: 1.10 ${PYTHON} setup.py build_ext --inplace 1.11 1.12 +.hg: REV := $(shell cat .hgrev) 1.13 +.hg: TMPDIR := $(shell mktemp -d tmprepo.XXXXXX) 1.14 +.hg: 1.15 + hg clone --rev $(REV) $(REPO) $(TMPDIR) 1.16 + hg -R $(TMPDIR) update 1.17 + mv $(TMPDIR)/.hg . 1.18 + mv $(TMPDIR)/.hgtags . 1.19 + rm -rf $(TMPDIR) 1.20 + 1.21 +repo: .hg 1.22 + 1.23 + 1.24 clean: 1.25 @echo Cleaning Source 1.26 @rm -fr build