From 4f03d300601d0e09333737b0b07d7dd681b055cf Mon Sep 17 00:00:00 2001
From: sof <unknown>
Date: Fri, 4 Jul 1997 01:19:20 +0000
Subject: [PATCH] [project @ 1997-07-04 01:19:20 by sof] Don't generate .hi's
 from .hi-boot's any longer

---
 ghc/compiler/Makefile | 34 +++++++---------------------------
 1 file changed, 7 insertions(+), 27 deletions(-)

diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile
index bc9c79bba218..816be9b17482 100644
--- a/ghc/compiler/Makefile
+++ b/ghc/compiler/Makefile
@@ -73,9 +73,7 @@ HCS      = $(patsubst %.lhs, %.hc, $(patsubst %.hs, %.hc, $(HS_SRCS)))
 # the suffix .hs, since they're special and don't fall under the umbrella of $(HS_SRCS)
 # always (only when $(Ghc2_0) is equal to YES)
 ifeq "$(Ghc2_0)" "YES"
-#OLD:LOOPS_HS  = $(wildcard */*Loop*.hs)
 MKDEPENDHS_SRCS = $(HS_SRCS)
-#HS_SRCS  += $(LOOPS_HS)
 else
 LOOPS   = $(patsubst %.lhi, %.hi, $(wildcard */*.lhi))
 endif
@@ -131,9 +129,6 @@ SRC_CC_OPTS += -Iparser -I. -I$(TOP)/includes -O
 
 ifeq "$(Ghc2_0)" "NO"
 SRC_HC_OPTS += -fomit-derived-read -fomit-reexported-instances
-else
-# Recompilation checking - unconditionally so (ToDo: move to mk/config.mk.in)
-SRC_HC_OPTS += -recomp
 endif
 
 ifeq ($(GhcWithDeforester),NO)
@@ -273,42 +268,27 @@ CLEAN_FILES += hsp
 #
 # 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. 
-
-
-else
+ifeq "$(Ghc2_0)" "NO"
 hi-boot :: $(LOOPS)
 
 %.hi : %.lhi
 	$(RM) $@
 	$(UNLIT) $<  $@ || ( $(RM) $@ && exit 1 )
 	@chmod 444 $@
-endif
 
 boot :: hi-boot
+else
+# hi-boot not needed when using 2.04+ as HC, defining it here
+# to be consistent across setting of Ghc2_0
+hi-boot :
+	@echo "Done."
+endif
 
 #-----------------------------------------------------------------------------
 # 		Linking
 
 SRC_LD_OPTS += -no-link-chk
 
-# Build-specific
-#SRC_LD_OPTS += "-pgml time gcc -B/projects/unsupported/gnu/sparc-sunos5/bin/g"
-
-
 #-----------------------------------------------------------------------------
 # 		install
 
-- 
GitLab