* ieee.c: Extensive changes to write code to put types in the
[deliverable/binutils-gdb.git] / binutils / mpw-make.sed
index 99259cec92116794f1d41165ce775ce2fb88f618..4cc3c2886fc43ec08a5b2b38232f356c609916b3 100644 (file)
@@ -1,15 +1,14 @@
 # Sed commands to finish translating the binutils Unix makefile into MPW syntax.
 
-# Define undefined makefile variables.
+# Add a rule.
 /^#### .*/a\
 \
-BUILD_NLMCONV = \
-BUILD_SRCONV = \
-SYSINFO_PROG = \
-BUILD_DLLTOOL = \
-\
 "{o}"underscore.c.o \\Option-f "{o}"underscore.c\
 
+# Comment out any alias settings.
+/^host_alias =/s/^/#/
+/^target_alias =/s/^/#/
+
 # Whack out unused host define bits.
 /HDEFINES/s/@HDEFINES@//
 
@@ -37,6 +36,10 @@ BUILD_DLLTOOL = \
 /^{[A-Z]*_PROG}/s/$/ "{s}"mac-binutils.r/
 /{[A-Z]*_PROG}\.r/s/{[A-Z]*_PROG}\.r/mac-binutils.r/
 
+# There are auto-generated references to BFD .h files that are not
+# in the objdir (like bfd.h) but are in the source dir.
+/::bfd:lib/s/::bfd:lib\([a-z]*\)\.h/{BFDDIR}:lib\1.h/g
+
 # Fix the locations of generated files.
 /config/s/"{s}"config\.h/"{o}"config.h/g
 /config/s/^config\.h/"{o}"config\.h/
@@ -66,7 +69,40 @@ BUILD_DLLTOOL = \
 # Fix an over-eagerness.
 /echo.*WARNING.*This file/s/'.*'/' '/
 
+# Add a "stamps" target.
+$a\
+stamps \\Option-f stamp-under\
+
+/^install \\Option-f /,/^$/c\
+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}\
+               Set progname `echo {prog} | sed -e 's/.new//'`\
+               Duplicate -y :{prog} "{bindir}"{progname}\
+       End For\
+
+
+/true/s/ ; @true$//
+
+# dot files are trouble, remove them and their actions.
+/^\.dep/,/^$/d
+
 # Remove un-useful targets.
 /^Makefile \\Option-f/,/^$/d
 /^"{o}"config.h \\Option-f/,/^$/d
 /^config.status \\Option-f/,/^$/d
+
+# Don't try to make the demangler's man page, it's useless.
+/^{DEMANGLER_PROG}\.1 \\Option-f/,/^$/d
+# Don't depend on it either.
+/{DEMANGLER_PROG}/s/ {DEMANGLER_PROG}\.1//
+
This page took 0.023267 seconds and 4 git commands to generate.