X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FMakefile;h=f3142b2ed18ad04085a01f8a38bd4acd968b0740;hb=c9c016973e8b1cf996d0b87f24204b70622dc97f;hp=8fb48c52cd8332a28ecbe7677381d927937aa6f1;hpb=459c7e36729f593aa09e813a47a61a8ea0c81d4f;p=ghc-hetmet.git diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 8fb48c5..f3142b2 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -538,10 +538,8 @@ MKDEPENDHS_HC_OPTS = $(patsubst -i$(odir)/%, -i%, $(HC_OPTS)) MKDEPENDHS=$(HC) -depend :: .depend-$(stage) - # Must do this *after* including target.mk, because $(HS_SRCS) isn't set yet. -.depend-$(stage) : $(HS_SRCS) $(C_SRCS) +depend :: $(HS_SRCS) $(C_SRCS) $(MKDEPENDHS) -M -optdep-f -optdep.depend-BASE $(foreach way,$(WAYS),-optdep-s -optdep$(way)) $(foreach obj,$(MKDEPENDHS_OBJ_SUFFICES),-osuf $(obj)) $(MKDEPENDHS_OPTS) $(filter-out -split-objs, $(MKDEPENDHS_HC_OPTS)) $(HS_SRCS) $(MKDEPENDC) -f .depend-BASE $(MKDEPENDC_OPTS) $(foreach way,$(WAYS),-s $(way)) -- $(CC_OPTS) -- $(C_SRCS) $(PERL) -pe 'binmode(stdin); binmode(stdout); s@^(\S*\.o)@stage$(stage)/$$1@g; s@(\S*\.hi)@stage$(stage)/$$1@g' <.depend-BASE >.depend-$(stage)