--- Makefile.in.orig	2008-02-21 23:05:43.000000000 +0100
+++ Makefile.in	2008-02-21 23:05:32.000000000 +0100
@@ -105,13 +105,13 @@
 install: install-dirs install-binaries install-man
 
 install-dirs:
-	$(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(mandir)/man1
+	$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
 
 install-binaries: $(PROG)
-	$(INSTALL) -m 0555 -s $(PROG) $(bindir)/$(PROG)
+	$(INSTALL) -m 0555 -s $(PROG) $(DESTDIR)$(bindir)/$(PROG)
 
 install-man:
-	$(INSTALL) -m 0444 $(srcdir)/$(PROG).$(mantype) $(mandir)/man1/$(PROG).1
+	$(INSTALL) -m 0444 $(srcdir)/$(PROG).$(mantype) $(DESTDIR)$(mandir)/man1/$(PROG).1
 
 check:
 	@echo nothing to check
