diff -ubwr man.orig/Makefile.in man/Makefile.in
--- man.orig/Makefile.in	Mon Jan 10 21:05:51 2005
+++ man/Makefile.in	Mon Jan 10 21:06:45 2005
@@ -17,8 +17,8 @@
 	-e "s,@CONFFILE@,$(DEF_CONFFILE)," < logsurfer.conf.4.in > logsurfer.conf.4
 
 install:
-	$(INSTALL_DATA) logsurfer.1 $(mandir)/man1/logsurfer.1
-	$(INSTALL_DATA) logsurfer.conf.4 $(mandir)/man4/logsurfer.conf.4
+	$(INSTALL_DATA) logsurfer.1 $(DESTDIR)$(mandir)/man1/logsurfer.1
+	$(INSTALL_DATA) logsurfer.conf.4 $(DESTDIR)$(mandir)/man4/logsurfer.conf.4
 
 clean:
 	$(RM) logsurfer.1 logsurfer.conf.4
diff -ubwr src.orig/Makefile.in src/Makefile.in
--- src.orig/Makefile.in	Mon Jan 10 21:05:51 2005
+++ src/Makefile.in	Mon Jan 10 21:07:39 2005
@@ -33,7 +33,7 @@
 all: logsurfer
 
 install:
-	$(INSTALL_PROGRAM) logsurfer $(bindir)/logsurfer
+	$(INSTALL_PROGRAM) logsurfer $(DESTDIR)$(bindir)/logsurfer
 
 logsurfer: $(OBJS)
 	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
