diff -Nru squidGuard-1.3.orig/Makefile.in squidGuard-1.3/Makefile.in
--- squidGuard-1.3.orig/Makefile.in	2007-07-01 11:37:14.000000000 -0400
+++ squidGuard-1.3/Makefile.in	2008-09-14 14:44:43.000000000 -0400
@@ -24,7 +24,7 @@
 dbhomedir = @sg_dbhome@
 SQUIDUSER = @squiduser@
 
-SUBDIRS = src doc test samples contrib
+SUBDIRS = src test samples contrib
 INSTALL_TARGETS = install-conf install-build
 
 all::
@@ -43,7 +43,7 @@
 # Dependencies for installing
 #	
 
-install:	install-build install-conf
+install:	install-build
 
 install-conf:
 	@echo Installing configuration file  ;
@@ -80,10 +80,10 @@
 
 install-build:
 	@echo Installing squidGuard 
-	@if [ ! -d $(bindir) ]; then \
-		$(MKINSTALLDIRS) $(bindir) ; \
+	@if [ ! -d $(DESTDIR)/$(bindir) ]; then \
+		$(MKINSTALLDIRS) $(DESTDIR)/$(bindir) ; \
 	fi ; \
-	cp src/squidGuard $(bindir) || exit 1 ;  \
+	cp src/squidGuard $(DESTDIR)/$(bindir) || exit 1 ;  \
 	echo Done. ;
 
 clean::
diff -Nru squidGuard-1.3.orig/src/Makefile.in squidGuard-1.3/src/Makefile.in
--- squidGuard-1.3.orig/src/Makefile.in	2007-05-10 11:39:44.000000000 -0400
+++ squidGuard-1.3/src/Makefile.in	2008-09-14 14:47:20.000000000 -0400
@@ -90,6 +90,8 @@
 	$(YACC) -d sg.y
 	mv -f y.tab.c y.tab.c.bison
 	mv -f y.tab.h y.tab.h.bison
+ 
+sg.y sg.l:
 
 #
 # Dependencies for installing
@@ -103,8 +105,8 @@
 
 install.bin:: squidGuard
 	@echo making $@ in `basename \`pwd\``
-	@$(MKDIR) $(bindir) $(logdir) $(cfgdir)
-	$(INSTALL_PROGRAM) squidGuard $(bindir)/squidGuard
+	@$(MKDIR) $(DESTDIR)/$(bindir)
+	$(INSTALL_PROGRAM) squidGuard $(DESTDIR)/$(bindir)
 
 uninstall.bin::
 	@echo making $@ in `basename \`pwd\``
