Makefile
changeset 7706 0ae7f0b312ea
parent 7687 1ac4dc64cf2a
child 7710 88326ee85a1b
--- 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