Ticket #13465: patch-etc-Make-mk

File patch-etc-Make-mk, 1.4 KB (added by x07simbj@…, 17 years ago)
Line 
1--- etc/Make.mk.orig    2007-11-30 23:54:05.000000000 +0100
2+++ etc/Make.mk 2007-11-30 23:55:44.000000000 +0100
3@@ -1,5 +1,5 @@
4 # Makefile for the auxiliary programs
5-# Parameters:  PREFIX TARGET
6+# Parameters:  PREFIX TARGET DESTROOT
7 SHELL=/bin/sh
8 GOROOT=..
9 
10@@ -17,14 +17,14 @@
11 install:       install-rmlc
12 
13 install-rmlc:  $(GOROOT)/config.cache $(GOROOT)/config/$(TARGET)/variables.mk
14-       ./mkdirhier $(PREFIX)/bin
15-       (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
16-       echo '# installation parameters' >> $(PREFIX)/bin/rmlc
17-       grep PREFIX $(GOROOT)/config.cache >> $(PREFIX)/bin/rmlc
18-       echo '# configuration parameters' >> $(PREFIX)/bin/rmlc
19-       ./mktosh $(GOROOT)/config/$(TARGET)/variables.mk >> $(PREFIX)/bin/rmlc
20-       cat skel.rmlc >> $(PREFIX)/bin/rmlc
21-       chmod +x $(PREFIX)/bin/rmlc
22+       ./mkdirhier $(DESTROOT)/bin
23+       (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
24+       echo '# installation parameters' >> $(DESTROOT)/bin/rmlc
25+       grep PREFIX $(GOROOT)/config.cache >> $(DESTROOT)/bin/rmlc
26+       echo '# configuration parameters' >> $(DESTROOT)/bin/rmlc
27+       ./mktosh $(GOROOT)/config/$(TARGET)/variables.mk >> $(DESTROOT)/bin/rmlc
28+       cat skel.rmlc >> $(DESTROOT)/bin/rmlc
29+       chmod +x $(DESTROOT)/bin/rmlc
30 
31 distclean:     clean-configure
32 realclean: