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:
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)
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