--- Makefile.in	2005-03-04 14:54:59.000000000 -0500
+++ Makefile.in.new	2005-08-18 15:02:05.000000000 -0400
@@ -55,12 +55,12 @@
 	  (cd $$dir && $(MAKE) install) \
 	  || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
 	done && test -z "$$fail"
-	$(top_srcdir)/mkinstalldirs $(incldir)/libssh
-	$(INSTALL) include/libssh/libssh.h $(incldir)/libssh/
-	$(INSTALL) include/libssh/config.h $(incldir)/libssh/
-	$(INSTALL) include/libssh/sftp.h $(incldir)/libssh/
-	$(INSTALL) include/libssh/crypto.h $(incldir)/libssh/
-	$(INSTALL) include/libssh/server.h $(incldir)/libssh/
+	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(incldir)/libssh
+	$(INSTALL) include/libssh/libssh.h $(DESTDIR)$(incldir)/libssh/
+	$(INSTALL) include/libssh/config.h $(DESTDIR)$(incldir)/libssh/
+	$(INSTALL) include/libssh/sftp.h $(DESTDIR)$(incldir)/libssh/
+	$(INSTALL) include/libssh/crypto.h $(DESTDIR)$(incldir)/libssh/
+	$(INSTALL) include/libssh/server.h $(DESTDIR)$(incldir)/libssh/
 clean:
 	/bin/rm -f *~ *.o ssh sftp
 	@for dir in ${subdirs}; do \

