Quote commands that we run, so they work if there are space in their paths
[ghc-hetmet.git] / utils / mkdependC / ghc.mk
index d49c5cf..1fa673a 100644 (file)
@@ -11,8 +11,8 @@
 # -----------------------------------------------------------------------------
 
 $(MKDEPENDC) : utils/mkdependC/mkdependC.prl $(MKDIRHIER)
-       $(MKDIRHIER) $(dir $@)
-       $(RM) -f $@
+       "$(MKDIRHIER)" $(dir $@)
+       "$(RM)" $(RM_OPTS) $@
        echo '#!$(PERL)'                               >> $@
        echo '$$DEFAULT_TMPDIR = "$(DEFAULT_TMPDIR)";' >> $@
        echo '$$CPP            = "$(CPP)";'            >> $@