Call $(SED) rather than sed
authorIan Lynagh <igloo@earth.li>
Tue, 1 Dec 2009 13:11:23 +0000 (13:11 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 1 Dec 2009 13:11:23 +0000 (13:11 +0000)
utils/ghc-cabal/ghc.mk

index d0f3bd5..b238db9 100644 (file)
@@ -81,7 +81,7 @@ $(GHC_CABAL_DIR)/dist-dummy-ghc/build/dummy-ghc.hs : $(GHC_CABAL_DIR)/ghc.mk $(M
 #   ["PostfixOperators"] ++
        echo 'extensions :: [String]'                                     >> $@
        echo 'extensions ='                                               >> $@
-       sed '/^xFlags/,/]/s/^[[:space:]]*([[:space:]]*\("[^"]*"\)[^"]*/  [\1] ++/p;d' compiler/main/DynFlags.hs >> $@
+       '$(SED)' '/^xFlags/,/]/s/^[[:space:]]*([[:space:]]*\("[^"]*"\)[^"]*/  [\1] ++/p;d' compiler/main/DynFlags.hs >> $@
        echo '  []'                                                       >> $@
 
 # We don't build dummy-ghc with Cabal, so we need to pass -package