From: Stefan Bund Date: Wed, 17 Feb 2010 22:18:33 +0000 (+0100) Subject: Add pil-rebuild and python-rebuild targets to Makefile.master X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=3d9c054e00eef407de7dcb7eb903812573b2e335;p=zope-bootstrap.git Add pil-rebuild and python-rebuild targets to Makefile.master --- diff --git a/Makefile.master b/Makefile.master index cbfab65..e9adea1 100644 --- a/Makefile.master +++ b/Makefile.master @@ -20,8 +20,9 @@ default: update-nonet debdepends: aptitude install build-essential zlibc libjpeg62-dev libfreetype6-dev -.PHONY: python-unpack python-build python setuptools eggs pil-unpack pil-build pil buildout \ - bootstrap update update-nonet shell init otherinit +.PHONY: default debdepends python-unpack python-build python-rebuild python-clean python \ + setuptools eggs pil-unpack pil-build pil-rebuild pil-clean pil buildout bootstrap \ + update update-nonet shell init otherinit python-unpack: $(PYTHON_DIR)/Python-$(PYTHON_VERSION)/README $(PYTHON_DIR)/Python-$(PYTHON_VERSION)/README: @@ -36,6 +37,12 @@ $(PYTHON): cd $(PYTHON_DIR)/Python-$(PYTHON_VERSION) && make cd $(PYTHON_DIR)/Python-$(PYTHON_VERSION) && make install +python-rebuild: python-clean python-build + +python-clean: + cd $(PYTHON_DIR)/Python-$(PYTHON_VERSION) && make clean + rm -f $(PYTHON) + python: python-unpack python-build setuptools: $(EASY_INSTALL) @@ -56,7 +63,13 @@ $(PYTHON_DIR)/Extensions/Imaging-$(PIL_VERSION)/README: pil-build: $(PYTHON_DIR)/bin/pilconvert.py $(PYTHON_DIR)/bin/pilconvert.py: - cd $(PYTHON_DIR)/Extensions/Imaging-$(PIL_VERSION) && $(PYTHON) setup.py install + cd $(PYTHON_DIR)/Extensions/Imaging-$(PIL_VERSION) && $(PYTHON) setup.py build --force + cd $(PYTHON_DIR)/Extensions/Imaging-$(PIL_VERSION) && $(PYTHON) setup.py install --force + +pil-rebuild: pil-clean pil-build + +pil-clean: + rm -f $(PYTHON_DIR)/bin/pilconvert.py pil: pil-unpack pil-build