The following piece of code is from fptools/ghc/compiler/Makefile. 
When doing "gmake boot" the goal hi-boot is not found and some
hi-files are not produced from the hi-boot files.

Ciao, Stefan.
--
Stefan Westmeier                              [EMAIL PROTECTED]
Schaphuser Str. 24                                                    
D-28307 Bremen                             vox humana: +(49) 421 424001
Germany                                   fax machina: +(49) 421 424045

#-----------------------------------------------------------------------------
#               Interface files

# LoopHack.lhc is an SLPJ addition to fix a profiling problem.  See comments
# inside it. (compilation is handled by the suffix rules).

#
# Building the loop breakers from .lhi (0.2x) or .hi-boot (2.xx) files
#
ifeq ($(Ghc2_0),YES)

BOOT_HI_STEMS = $(basename $(wildcard */*.hi-boot))

hi-boot :: 
        @for n in $(BOOT_HI_STEMS); \
        do  \
          echo Creating $$n.hi ; \
          $(RM) $$n.hi ; \
          $(CP) $$n.hi-boot $$n.hi || ( $(RM) $$n.hi && exit 1 ) ; \
        done 
#
# Have the collector *Loop.hs interface files be generated just after having
# created the .hi's from the .hi-boot's. 

#hi-boot :: $(patsubst %.hs,%.hi,$(LOOPS_HS))

else
%.hi : %.lhi
        $(RM) $@
        $(UNLIT) $<  $@ || ( $(RM) $@ && exit 1 )
        @chmod 444 $@
endif

boot :: hi-boot

Reply via email to