From ad3f9bc663f27310cdad0abdd2814540cb0af4cb Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 24 Sep 2002 14:31:20 +0000 Subject: [PATCH] [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. --- mk/paths.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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" -- 1.7.10.4