[project @ 2001-03-04 08:31:13 by qrczak]
authorqrczak <unknown>
Sun, 4 Mar 2001 08:31:13 +0000 (08:31 +0000)
committerqrczak <unknown>
Sun, 4 Mar 2001 08:31:13 +0000 (08:31 +0000)
Properly clean PrelPrimopWrappers for all ways.

ghc/lib/std/Makefile
mk/paths.mk

index 8187ebc..0857f53 100644 (file)
@@ -37,6 +37,8 @@ HSLIB = std
 # we don't want PrelMain in the GHCi library.
 GHCI_LIBOBJS = $(filter-out PrelMain.$(way_)o,$(HS_OBJS))
 
+BOOT_SRCS += PrelPrimopWrappers.hs
+
 HSC_SRCS = $(wildcard *.hsc)
 HSC_HS   = $(patsubst %.hsc,%.hs, $(HSC_SRCS))
 HS_SRCS := $(HSC_HS) $(filter-out $(HSC_HS),$(HS_SRCS))
@@ -82,7 +84,7 @@ HS_SRCS := $(filter-out PrelMain.lhs, $(HS_SRCS))
 all :: PrelMain.dll_o
 endif
 
-CLEAN_FILES += PrelPrimopWrappers.hs PrelGHC.hi $(foreach way, $(WAYS), PrelGHC.$(way)_hi)
+CLEAN_FILES += PrelGHC.hi $(foreach way, $(WAYS), PrelGHC.$(way)_hi)
 
 CLEAN_FILES +=  \
        $(patsubst %.hsc, %.hs, $(HSC_SRCS)) \
index 9010e47..83a76b8 100644 (file)
@@ -99,7 +99,7 @@ INSTALL_DIR     = $(FPTOOLS_TOP)/glafp-utils/mkdirhier/mkdirhier
 
 SRCS=$(wildcard *.lhs *.hs *.c *.lc *.prl *.lprl *.lit *.verb)
 
-HS_SRCS=$(filter %.lhs %.hs %.hc,$(SRCS) $(BOOT_SRCS))
+HS_SRCS=$(filter %.lhs %.hs %.hc,$(sort $(SRCS) $(BOOT_SRCS)))
 HS_OBJS=$(addsuffix .$(way_)o,$(basename $(HS_SRCS)))
 HS_HCS=$(addsuffix .$(way_)hc,$(basename $(HS_SRCS)))
 HS_SS=$(addsuffix .$(way_)s,$(basename $(HS_SRCS)))