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))
-
#-----------------------------------------------------------------------------
# Setting the GHC compile options
CLEAN_FILES += PrelGHC.hi $(foreach way, $(WAYS), PrelGHC.$(way)_hi)
-CLEAN_FILES += \
- $(patsubst %.hsc, %.hs, $(HSC_SRCS)) \
- $(patsubst %.hsc, %_hsc.c, $(HSC_SRCS)) \
- $(patsubst %.hsc, %_hsc.h, $(HSC_SRCS))
-
#-----------------------------------------------------------------------------
# Installation; need to install .hi files as well as libraries
#
# (caveat: assuming no funny use of -hisuf and that
# file name and module name match)
-SRCS=$(wildcard *.lhs *.hs *.c *.prl *.lprl *.lit *.verb)
+HSC_SRCS = $(wildcard *.hsc)
+SRCS = $(wildcard *.lhs *.hs *.c *.prl *.lprl *.lit *.verb) \
+ $(patsubst %.hsc,%.hs,$(HSC_SRCS))
HS_SRCS=$(filter %.lhs %.hs %.hc,$(sort $(SRCS) $(BOOT_SRCS)))
HS_OBJS=$(addsuffix .$(way_)o,$(basename $(HS_SRCS)))
# that may require extra tools to create.
#
#
-MOSTLY_CLEAN_FILES += $(HS_OBJS) $(C_OBJS)
-CLEAN_FILES += $(HS_PROG) $(C_PROG) $(SCRIPT_PROG) $(SCRIPT_LINK) \
- $(PROG) $(LIBRARY) $(HS_IFACES) $(HS_SS) \
- a.out
+MOSTLY_CLEAN_FILES += $(HS_OBJS) $(C_OBJS)
+CLEAN_FILES += $(HS_PROG) $(C_PROG) $(SCRIPT_PROG) $(SCRIPT_LINK) \
+ $(PROG) $(LIBRARY) $(HS_IFACES) $(HS_SS) a.out \
+ $(patsubst %.hsc,%.hs,$(HSC_SRCS)) \
+ $(patsubst %.hsc,%_hsc.c,$(HSC_SRCS)) \
+ $(patsubst %.hsc,%_hsc.h,$(HSC_SRCS))
# Don't clean the .hc files if we're bootstrapping
ifneq "$(BootingFromHc)" "YES"