* mpw-config.in: New file, MPW configure fragment for binutils.
[deliverable/binutils-gdb.git] / binutils / mpw-make.in
index 5c0dca0b0d242c63264da97290412902d45904a6..5527d579d4bafceb9c0c6ace22e673097d5c75cf 100644 (file)
@@ -37,7 +37,7 @@ prefix = :usr:local
 
 program_transform_name =
 exec_prefix = {prefix}
-bindir = {exec_prefix}:bin
+bindir = {exec_prefix}bin:
 libdir = {exec_prefix}:lib
 tooldir = {exec_prefix}:{target_alias}
 
@@ -458,21 +458,20 @@ etags tags \Option-f  TAGS
 TAGS \Option-f  force
        etags {INCDIR}:\Option-x.h "{srcdir}"\Option-x.[hc] 
 
-install \Option-f  all
-       for i in {PROGS} ; do \Option-d
-         {INSTALL_XFORM} $$i {bindir}:$$i ; \Option-d
-       done
-       for i in {MANPAGES} ; do \Option-d
-         {INSTALL_XFORM1} "{srcdir}"$$i.1 {man1dir}:$$i.1 ; \Option-d
-       done
-       if [ -d {tooldir} ]; then \Option-d
-          if [ -d {tooldir}:bin ] ; then true ; else mkdir {tooldir}:bin ; fi; \Option-d
-          for i in nm strip ar ranlib; do \Option-d
-            Delete -y {tooldir}:bin:$$i; \Option-d
-            # ln {bindir}:`t='{program_transform_name}'; echo $$i | sed -e "" $$t` {tooldir}:bin:$$i \Option-d
-             || {INSTALL_PROGRAM} $$i {tooldir}:bin:$$i; \Option-d
-          done; \Option-d
-        else true; fi          
+install \Option-f  all install-only
+
+install-only \Option-f
+       If "`Exists "{prefix}"`" == ""
+               Echo "{prefix}" does not exist, cannot install anything
+               Exit 1
+       End If
+       If "`Exists "{bindir}"`" == ""
+               NewFolder "{bindir}"
+       End If
+       # Need to copy all the tools
+       For prog in {PROGS}
+               Duplicate -y :{prog} "{bindir}"{prog}
+       End For
 
 # Use binutils.info as the target so that VPATH will DTRT.
 # (Use "$<\Option-x" in case the output is multiple files, though.)
This page took 0.023335 seconds and 4 git commands to generate.