--- client/Makefile.in.orig	2008-07-29 16:54:51.000000000 -0700
+++ client/Makefile.in	2008-07-29 16:55:10.000000000 -0700
@@ -58,9 +58,9 @@
 all:		$(TARGETS)
 
 install:	$(TARG_INSTALL)
-		mkdir -p $(bindir)
+		mkdir -p $(DESTDIR)$(bindir)
 		set -xe; for f in $(TARG_INSTALL); \
-			do $(INSTALL_PROGRAM) $$f $(bindir)/$$f; done
+			do $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f; done
 
 uninstall:
 		for f in $(TARGETS); do rm -f $(bindir)/$$f; done
