--- Makefile.in.old	2011-01-15 23:52:08.000000000 -0600
+++ Makefile.in	2011-01-15 23:52:42.000000000 -0600
@@ -230,17 +230,17 @@
 
 # Install after building
 install:: force
-	for d in $(DIRS); do $(INSTALL) -d $$d; done
-	for f in $(BIN); do $(INSTALL_PROG) $$f $(bindir); done
-	for f in $(LIBSRC); do $(INSTALL_DATA) $$f $(libdir)/obc; done
-	for f in $(LIB); do $(INSTALL_DATA) $$f $(libdir)/obc; done
-	for f in $(LIBX); do $(INSTALL_PROG) $$f $(libdir)/obc; done
-	for f in $(MAN); do $(INSTALL_DATA) $$f $(mandir)/man1; done
+	for d in $(DIRS); do $(INSTALL) -d $(DESTDIR)$$d; done
+	for f in $(BIN); do $(INSTALL_PROG) $$f $(DESTDIR)$(bindir); done
+	for f in $(LIBSRC); do $(INSTALL_DATA) $$f $(DESTDIR)$(libdir)/obc; done
+	for f in $(LIB); do $(INSTALL_DATA) $$f $(DESTDIR)$(libdir)/obc; done
+	for f in $(LIBX); do $(INSTALL_PROG) $$f $(DESTDIR)$(libdir)/obc; done
+	for f in $(MAN); do $(INSTALL_DATA) $$f $(DESTDIR)$(mandir)/man1; done
 
 ifdef ENABLE_DEBUGGER
   ifdef MACOS
     install:: force
-	cp -R macport/Obdb.app $(libdir)/obc
+	cp -R macport/Obdb.app $(DESTDIR)$(libdir)/obc
   endif
 endif
 
