aboutsummaryrefslogtreecommitdiff
path: root/gas/mpw-make.sed
diff options
context:
space:
mode:
Diffstat (limited to 'gas/mpw-make.sed')
-rw-r--r--gas/mpw-make.sed10
1 files changed, 6 insertions, 4 deletions
diff --git a/gas/mpw-make.sed b/gas/mpw-make.sed
index a5f4070..4f2d553 100644
--- a/gas/mpw-make.sed
+++ b/gas/mpw-make.sed
@@ -64,16 +64,18 @@ LOCAL_LOADLIBES = \
# Whack out recursive makes, they won't work.
/^[ ][ ]*srcroot=/,/^[ ][ ]*(cd /d
+# Work around quoting problems by using multiple echo commands.
/'#define GAS_VERSION "{VERSION}"'/c\
Echo -n '#define GAS_VERSION "' >> "{o}"config.new\
Echo -n "{VERSION}" >> "{o}"config.new\
Echo -n '"' >> "{o}"config.new
+# Add a "stamps" target.
+$a\
+stamps \\Option-f config-stamp\
+
# Whack out config-rebuilding targets, they won't work.
+/^Makefile \\Option-f/,/^$/d
/^config.status \\Option-f/,/^$/d
/^"{o}"config.h \\Option-f/s/^/#/
-
-# Add a "stamps" target.
-$a\
-stamps \\Option-f config-stamp\