use PURE option in Makefile
authorMartin Geisler <mg@daimi.au.dk>
Sat, 24 Jan 2009 01:47:36 +0100
changeset 7706 0ae7f0b312ea
parent 7705 c55e68e8f256
child 7707 64fd7f6d3b40
use PURE option in Makefile
.hgignore
Makefile
--- a/.hgignore	Sun Jan 25 11:10:51 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
--- a/Makefile	Sun Jan 25 11:10:51 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