--- etc/Make.mk.orig	2007-11-30 23:54:05.000000000 +0100
+++ etc/Make.mk	2007-11-30 23:55:44.000000000 +0100
@@ -1,5 +1,5 @@
 # Makefile for the auxiliary programs
-# Parameters:	PREFIX TARGET
+# Parameters:	PREFIX TARGET DESTROOT
 SHELL=/bin/sh
 GOROOT=..
 
@@ -17,14 +17,14 @@
 install:	install-rmlc
 
 install-rmlc:	$(GOROOT)/config.cache $(GOROOT)/config/$(TARGET)/variables.mk
-	./mkdirhier $(PREFIX)/bin
-	(if [ -x /bin/ksh ]; then echo '#!/bin/ksh'; elif [ -x /usr/bin/ksh ]; then echo '#!/usr/bin/ksh'; else echo '#!/bin/sh'; fi) > $(PREFIX)/bin/rmlc
-	echo '# installation parameters' >> $(PREFIX)/bin/rmlc
-	grep PREFIX $(GOROOT)/config.cache >> $(PREFIX)/bin/rmlc
-	echo '# configuration parameters' >> $(PREFIX)/bin/rmlc
-	./mktosh $(GOROOT)/config/$(TARGET)/variables.mk >> $(PREFIX)/bin/rmlc
-	cat skel.rmlc >> $(PREFIX)/bin/rmlc
-	chmod +x $(PREFIX)/bin/rmlc
+	./mkdirhier $(DESTROOT)/bin
+	(if [ -x /bin/ksh ]; then echo '#!/bin/ksh'; elif [ -x /usr/bin/ksh ]; then echo '#!/usr/bin/ksh'; else echo '#!/bin/sh'; fi) > $(DESTROOT)/bin/rmlc
+	echo '# installation parameters' >> $(DESTROOT)/bin/rmlc
+	grep PREFIX $(GOROOT)/config.cache >> $(DESTROOT)/bin/rmlc
+	echo '# configuration parameters' >> $(DESTROOT)/bin/rmlc
+	./mktosh $(GOROOT)/config/$(TARGET)/variables.mk >> $(DESTROOT)/bin/rmlc
+	cat skel.rmlc >> $(DESTROOT)/bin/rmlc
+	chmod +x $(DESTROOT)/bin/rmlc
 
 distclean:	clean-configure
 realclean:
