--- Makefile.in	2014-02-19 10:09:23.000000000 +0100
+++ Makefile.in	2014-02-19 10:09:57.000000000 +0100
@@ -26,8 +26,8 @@
 exec_prefix = @exec_prefix@
 transform=@program_transform_name@
 
-bindir = $(exec_prefix)/bin
-mandir = $(prefix)/man/man$(manext)
+bindir = $(DESTDIR)$(exec_prefix)/bin
+mandir = $(DESTDIR)$(prefix)/share/man/man$(manext)
 manext = 1
 
 # Suffix for executables: nothing for unix, .exe for os/2.
