From: simonmar Date: Tue, 24 Sep 2002 14:31:20 +0000 (+0000) Subject: [project @ 2002-09-24 14:31:20 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~1648 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ad3f9bc663f27310cdad0abdd2814540cb0af4cb;p=ghc-hetmet.git [project @ 2002-09-24 14:31:20 by simonmar] Stale interface files left by modules which no longer exist can cause build problems, so in make clean we now delete all the interface files we can find, rather than just the ones we know were generated from existing source files. --- diff --git a/mk/paths.mk b/mk/paths.mk index 50c26e1..7112658 100644 --- a/mk/paths.mk +++ b/mk/paths.mk @@ -252,8 +252,13 @@ TAGS_C_SRCS=$(C_SRCS) # MOSTLY_CLEAN_FILES += $(HS_OBJS) $(C_OBJS) $(HSC_C_OBJS) CLEAN_FILES += $(HS_PROG) $(C_PROG) $(SCRIPT_PROG) $(SCRIPT_LINK) \ - $(PROG) $(LIBRARY) $(HS_IFACES) a.out \ - $(DERIVED_HSC_SRCS) + $(PROG) $(LIBRARY) a.out \ + $(DERIVED_HSC_SRCS) \ + $(patsubst %,%/*.$(way_)hi, . $(ALL_DIRS)) + +# we delete *all* the .hi files we can find, rather than just +# $(HS_IFACES), because stale interfaces left around by modules which +# don't exist any more can screw up the build. # Don't clean the .hc files if we're bootstrapping ifneq "$(BootingFromHc)" "YES"