summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2016-02-21 12:23:25 +0100
committerThomas Miedema <thomasmiedema@gmail.com>2016-02-21 12:24:33 +0100
commitf45103908348fb92ef9a16ab97ced87239a66783 (patch)
treeea5d532025996c4b18c54793303eeaa1d4c973c8 /rules
parent6e691cacd6484b02df72f3e46a1d2ed0779a3107 (diff)
downloadhaskell-f45103908348fb92ef9a16ab97ced87239a66783.tar.gz
Build system: fix sed expression (#11537)
This allows building ghc in '/ghc'.
Diffstat (limited to 'rules')
-rw-r--r--rules/build-dependencies.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/build-dependencies.mk b/rules/build-dependencies.mk
index cdc1edff56..8152691c01 100644
--- a/rules/build-dependencies.mk
+++ b/rules/build-dependencies.mk
@@ -145,7 +145,7 @@ endef
define addCFileDeps
$(CPP) $($1_$2_MKDEPENDC_OPTS) $($1_$2_$(firstword $($1_$2_WAYS))_ALL_CC_OPTS) $($(basename $4)_CC_OPTS) -MM -x c $4 -MF $3.bit
- $(foreach w,$5,sed -e 's|\\|/|g' -e 's| /$$| \\|' -e "1s|\.o|\.$($w_osuf)|" -e "1s|^|$(dir $4)|" -e "1s|$1/|$1/$2/build/|" -e "1s|$2/build/$2/build|$2/build|g" -e "s|$(TOP)/||g$(CASE_INSENSITIVE_SED)" $3.bit >> $3.tmp &&) true
+ $(foreach w,$5,sed -e 's|\\|/|g' -e 's| /$$| \\|' -e "1s|\.o|\.$($w_osuf)|" -e "1s|^|$(dir $4)|" -e "1s|$1/|$1/$2/build/|" -e "1s|$2/build/$2/build|$2/build|g" -e "s|^$(TOP)/||g$(CASE_INSENSITIVE_SED)" $3.bit >> $3.tmp &&) true
endef
ifeq "$(Windows_Host)" "YES"