applied patch from Christophe Merlet to reestablish DESTDIR Daniel

* python/Makefile.am: applied patch from Christophe Merlet to
  reestablish DESTDIR
Daniel
diff --git a/ChangeLog b/ChangeLog
index fd76c8f..b56b6d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep  5 10:07:13 CEST 2002 Daniel Veillard <daniel@veillard.com>
+
+	* python/Makefile.am: applied patch from Christophe Merlet to
+	  reestablish DESTDIR
+
 Wed Sep  4 14:13:34 CEST 2002 Daniel Veillard <daniel@veillard.com>
 
 	* libxml.spec.in: fixes libary path for x86_64 AMD
diff --git a/python/Makefile.am b/python/Makefile.am
index 88581f2..e6a762f 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -40,11 +40,11 @@
 	cat $(srcdir)/libxml.py libxml2class.py > libxml2.py
 
 install-data-local:
-	$(mkinstalldirs) $(libdir)/python${PYTHON_VERSION}/site-packages
-	@INSTALL@ -m 0644 libxml2.py $(libdir)/python${PYTHON_VERSION}/site-packages
-	$(mkinstalldirs) $(DOCS_DIR)
+	$(mkinstalldirs) $(DESTDIR)$(libdir)/python${PYTHON_VERSION}/site-packages
+	@INSTALL@ -m 0644 libxml2.py $(DESTDIR)$(libdir)/python${PYTHON_VERSION}/site-packages
+	$(mkinstalldirs) $(DESTDIR)$(DOCS_DIR)
 	@(for doc in $(DOCS) ; \
-	   do @INSTALL@ -m 0644 $$doc $(DOCS_DIR) ; done)
+	   do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)
 
 GENERATE = generator.py
 API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml