diff options
author | Ian Lynagh <igloo@earth.li> | 2009-12-19 13:53:39 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-12-19 13:53:39 +0000 |
commit | 92b7b8a604b2ccca0c6502c74af477378ef6aad6 (patch) | |
tree | 64ccdec8637aaa68e61ec9acf82b289746eaf983 /rules/build-dependencies.mk | |
parent | 0bcaeb3839017bcea57b0c0ecf8c6bfe6b803e4e (diff) | |
download | haskell-92b7b8a604b2ccca0c6502c74af477378ef6aad6.tar.gz |
When removing $(TOP) with sed, do so case insensitively
This avoids problems on Windows, where drive letters may not be the
case we expect.
Diffstat (limited to 'rules/build-dependencies.mk')
-rw-r--r-- | rules/build-dependencies.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/build-dependencies.mk b/rules/build-dependencies.mk index 2f8b60755b..5f65e737b3 100644 --- a/rules/build-dependencies.mk +++ b/rules/build-dependencies.mk @@ -88,6 +88,6 @@ endef define addCFileDeps $(CPP) $($1_$2_MKDEPENDC_OPTS) $($1_$2_v_ALL_CC_OPTS) $($(basename $4)_CC_OPTS) -MM $4 -MF $3.bit - $(foreach w,$5,sed -e "1s|\.o|\.$($w_osuf)|" -e "1s|^|$(dir $4)|" -e "1s|$1/|$1/$2/build/|" -e "s|$(TOP)/||g" -e "s|$2/build/$2/build|$2/build|g" $3.bit >> $3.tmp &&) true + $(foreach w,$5,sed -e "1s|\.o|\.$($w_osuf)|" -e "1s|^|$(dir $4)|" -e "1s|$1/|$1/$2/build/|" -e "s|$(TOP)/||gi" -e "s|$2/build/$2/build|$2/build|g" $3.bit >> $3.tmp &&) true endef |