$OpenBSD: patch-Makefile,v 1.2 2007/09/21 21:17:56 sturm Exp $
--- Makefile.orig	Thu Dec 14 23:34:20 2006
+++ Makefile	Fri Sep 21 08:08:25 2007
@@ -25,7 +25,7 @@
 PERL = /usr/bin/perl
 
 # Blank by default, but set to QUIET to ask essential questions only
-INSTALL_VERBOSITY?= STANDARD
+INSTALL_VERBOSITY?= QUIET
 
 # can't load Bric since it loads Bric::Config which has dependencies
 # that won't be solved till make install.
@@ -38,6 +38,12 @@ BRIC_VERSION = `$(PERL) -ne '/VERSION.*?([\d\.]+)/ and
 all 		: required.db modules.db apache.db postgres.db config.db \
                   bconf/bricolage.conf build_done
 
+build		:
+	rm -f lib/Makefile
+	rm -f bin/Makefile
+	cd lib; $(PERL) Makefile.PL PREFIX="${PREFIX}"; $(MAKE)
+	cd bin; $(PERL) Makefile.PL PREFIX="${PREFIX}"; $(MAKE)
+
 required.db	: inst/required.pl
 	$(PERL) inst/required.pl $(INSTALL_VERBOSITY)
 
@@ -185,9 +191,9 @@ clone_tar	:
 # installation rules     #
 ##########################
 
-install 	: install_files install_db done
+install 	: install_files
 
-install_files	: all is_root cpan lib bin files
+install_files	: all is_root lib bin files
 
 install_db		: db db_grant
 
@@ -202,12 +208,10 @@ cpan 		: modules.db postgres.db inst/cpan.pl
 	$(PERL) inst/cpan.pl
 
 lib 		: 
-	-rm -f lib/Makefile
-	cd lib; $(PERL) Makefile.PL; $(MAKE) install
+	cd lib; $(MAKE) install
 
 bin 		:
-	-rm -f bin/Makefile
-	cd bin; $(PERL) Makefile.PL; $(MAKE) install
+	cd bin; $(MAKE) install
 
 files 		: config.db bconf/bricolage.conf
 	$(PERL) inst/files.pl
