summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-22 12:24:12 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-22 12:24:12 +0000
commit9e214f30c4f2bb6e6529c1bb988be1e46026919f (patch)
tree626bd16de4c1330f64a6a72e6344c4051e1f7713
parent33c679ba9a5af00cc7243ace1d899e221df8a719 (diff)
* 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". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--ext/extmk.rb.in4
-rw-r--r--lib/mkmf.rb4
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 3d55961f57b..0dd6874aa96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Jul 22 21:16:43 2001 Akinori MUSHA <knu@iDaemons.org>
+
+ * 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 <knu@iDaemons.org>
* gc.c (ruby_xrealloc): fix a dangling bug which led memory
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index 99ad86d979d..cb503bdcdd9 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 d33045ddb4c..4c375a88456 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