From: simonmar Date: Wed, 23 Jul 2003 15:31:06 +0000 (+0000) Subject: [project @ 2003-07-23 15:31:06 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~649 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=b180d2d4959b3b5b8361afc8329f40479176555b [project @ 2003-07-23 15:31:06 by simonmar] Fix depend rule for BootingFromHc --- diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 4e78515..1db9a45 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -581,7 +581,10 @@ MKDEPENDHS=$(HC) # Must do this *after* including target.mk, because $(HS_SRCS) isn't set yet. depend :: $(HS_SRCS) $(C_SRCS) + touch .depend-BASE +ifneq "$(BootingFromHc)" "YES" $(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) +endif $(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) # The binmode stuff tells perl not to add stupid ^M's to the output