diff --git a/ChangeLog b/ChangeLog index 3d55961f57..0dd6874aa9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Jul 22 21:16:43 2001 Akinori MUSHA + + * ext/extmk.rb.in, lib/mkmf.rb: introduce a couple of new make + variables: CLEANFILES and DISTCLEANFILES. They'd typically be + defined in a file "depend". + Fri Jul 20 22:55:01 2001 Akinori MUSHA * gc.c (ruby_xrealloc): fix a dangling bug which led memory diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 99ad86d979..cb503bdcdd 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -480,11 +480,11 @@ EXEEXT = @EXEEXT@ all: $(DLLIB) clean:; @$(RM) *.#{$OBJEXT} *.so *.sl *.#{$LIBEXT} $(DLLIB) - @$(RM) *.ilk *.exp *.pdb *.bak + @$(RM) *.ilk *.exp *.pdb *.bak $(CLEANFILES) distclean: clean @$(RM) Makefile extconf.h conftest.* - @$(RM) core ruby$(EXEEXT) *~ + @$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) realclean: distclean EOS diff --git a/lib/mkmf.rb b/lib/mkmf.rb index d33045ddb4..4c375a8845 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -476,11 +476,11 @@ EXEEXT = #{CONFIG["EXEEXT"]} all: $(DLLIB) clean:; @$(RM) *.#{$OBJEXT} *.so *.sl *.a $(DLLIB) - @$(RM) $(TARGET).lib $(TARGET).exp $(TARGET).ilk *.pdb + @$(RM) $(TARGET).lib $(TARGET).exp $(TARGET).ilk *.pdb $(CLEANFILES) distclean: clean @$(RM) Makefile extconf.h conftest.* mkmf.log - @$(RM) core ruby$(EXEEXT) *~ + @$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) realclean: distclean