Change some HC_OPTS to CC_OPTS, so they are used when making dependencies
[ghc-hetmet.git] / utils / mkdependC / ghc.mk
index d49c5cf..229e3ee 100644 (file)
@@ -10,9 +10,8 @@
 #
 # -----------------------------------------------------------------------------
 
-$(MKDEPENDC) : utils/mkdependC/mkdependC.prl $(MKDIRHIER)
-       $(MKDIRHIER) $(dir $@)
-       $(RM) -f $@
+$(MKDEPENDC) : utils/mkdependC/mkdependC.prl | $$(dir $$@)/.
+       "$(RM)" $(RM_OPTS) $@
        echo '#!$(PERL)'                               >> $@
        echo '$$DEFAULT_TMPDIR = "$(DEFAULT_TMPDIR)";' >> $@
        echo '$$CPP            = "$(CPP)";'            >> $@