[PATCH 9 of 9] use PURE option in Makefile

Martin Geisler mg at daimi.au.dk
Fri Jan 23 19:06:57 CST 2009


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1232758056 -3600
# Node ID 4bd3f1382ab2de6449f3daa82b8b91169353f350
# Parent  fe9b54419d3eef355f07a7eda9aa2e5d60110b48
use PURE option in Makefile

diff -r fe9b54419d3e -r 4bd3f1382ab2 .hgignore
--- a/.hgignore	Sat Jan 24 01:44:43 2009 +0100
+++ b/.hgignore	Sat Jan 24 01:47:36 2009 +0100
@@ -30,6 +30,14 @@
 i18n/hg.pot
 locale/*/LC_MESSAGES/hg.mo
 
+# files installed with a local --pure build
+mercurial/base85.py
+mercurial/bdiff.py
+mercurial/diffhelpers.py
+mercurial/mpatch.py
+mercurial/osutil.py
+mercurial/parsers.py
+
 syntax: regexp
 ^\.pc/
 ^\.(pydev)?project
diff -r fe9b54419d3e -r 4bd3f1382ab2 Makefile
--- a/Makefile	Sat Jan 24 01:44:43 2009 +0100
+++ b/Makefile	Sat Jan 24 01:47:36 2009 +0100
@@ -1,6 +1,7 @@
 PREFIX=/usr/local
 export PREFIX
 PYTHON=python
+PURE=
 
 help:
 	@echo 'Commonly used make targets:'
@@ -24,13 +25,11 @@
 all: build doc
 
 local:
-	$(PYTHON) setup.py build_ext -i
-	$(PYTHON) setup.py build_py -c -d .
-	$(PYTHON) setup.py build_mo
+	$(PYTHON) setup.py $(PURE) build_py -c -d . build_ext -i build_mo
 	$(PYTHON) hg version
 
 build:
-	$(PYTHON) setup.py build
+	$(PYTHON) setup.py $(PURE) build
 
 doc:
 	$(MAKE) -C doc
@@ -44,7 +43,7 @@
 install: install-bin install-doc
 
 install-bin: build
-	$(PYTHON) setup.py install --prefix="$(PREFIX)" --force
+	$(PYTHON) setup.py $(PURE) install --prefix="$(PREFIX)" --force
 
 install-doc: doc
 	cd doc && $(MAKE) $(MFLAGS) install
@@ -52,7 +51,7 @@
 install-home: install-home-bin install-home-doc
 
 install-home-bin: build
-	$(PYTHON) setup.py install --home="$(HOME)" --force
+	$(PYTHON) setup.py $(PURE) install --home="$(HOME)" --force
 
 install-home-doc: doc
 	cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install


More information about the Mercurial-devel mailing list