summaryrefslogtreecommitdiff
path: root/rules/build-dependencies.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-02-23 02:33:20 +0000
committerIan Lynagh <ian@well-typed.com>2013-02-23 02:33:20 +0000
commit02a489edcf82e6c38d6ee67faa337fdd314f9c0c (patch)
tree84faa11dc75db8445361001be5af57b0b030a1a7 /rules/build-dependencies.mk
parent8a6b56549ea12be736c47172d3cbeba9dc667918 (diff)
downloadhaskell-02a489edcf82e6c38d6ee67faa337fdd314f9c0c.tar.gz
Tweak the sed command so that it works on OSX
Using { } with sed on OS X requires using newlines rather than semicolons. I've rewritten the sed so that no { } are necessary.
Diffstat (limited to 'rules/build-dependencies.mk')
-rw-r--r--rules/build-dependencies.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/rules/build-dependencies.mk b/rules/build-dependencies.mk
index 346ee10148..7b66dcd266 100644
--- a/rules/build-dependencies.mk
+++ b/rules/build-dependencies.mk
@@ -49,7 +49,17 @@ endif
# within the build tree. On Windows this causes a problem as they look
# like bad rules, due to the two colons, so we filter them out.
grep -v ' : [a-zA-Z]:/' $$@.tmp > $$@.tmp2
- sed '/hs$$$$/ { p; s/o /hi /g; s/:/ : %hi: %o /; s/^/$$$$(eval $$$$(call hi-rule,/; s/$$$$/))/ }; /hs-boot$$$$/ { p; s/o-boot /hi-boot /g; s/:/ : %hi-boot: %o-boot /; s/^/$$$$(eval $$$$(call hi-rule,/; s/$$$$/))/ }' $$@.tmp2 > $$@
+ sed '/hs$$$$/ p ; \
+ /hs$$$$/ s/o /hi /g ; \
+ /hs$$$$/ s/:/ : %hi: %o / ; \
+ /hs$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/ ; \
+ /hs$$$$/ s/$$$$/))/ ; \
+ /hs-boot$$$$/ p ; \
+ /hs-boot$$$$/ s/o-boot /hi-boot /g ; \
+ /hs-boot$$$$/ s/:/ : %hi-boot: %o-boot / ; \
+ /hs-boot$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/ ; \
+ /hs-boot$$$$/ s/$$$$/))/' \
+ $$@.tmp2 > $$@
# Some of the C files (directly or indirectly) include the generated
# includes files.