--- doc/Makefile.in.orig	2004-08-24 17:38:04.000000000 -0600
+++ doc/Makefile.in	2009-07-16 01:44:37.000000000 -0600
@@ -232,8 +232,8 @@
 
 
 install-data-local:
-	$(INSTALL) -m 755 -d $(prefix)/doc/libpcre++-$(VERSION)
-	$(INSTALL) -m 644 $(DOC_FILES) $(prefix)/doc/libpcre++-$(VERSION)/
+	$(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/share/doc/libpcre++-$(VERSION)
+	$(INSTALL) -m 644 $(DOC_FILES) $(DESTDIR)$(prefix)/share/doc/libpcre++-$(VERSION)/
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
