summaryrefslogtreecommitdiffstats
path: root/enc/depend
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 17:23:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 17:23:24 +0000
commit29b1dcd84ab8d7fbb35f31f150b5e2885c046db1 (patch)
treebc484615b8f764135194641a49493e313f4c53f3 /enc/depend
parent9adecf3a7f532ed7932786b9b656f364860788e6 (diff)
downloadruby-29b1dcd84ab8d7fbb35f31f150b5e2885c046db1.tar.gz
ruby-29b1dcd84ab8d7fbb35f31f150b5e2885c046db1.tar.xz
ruby-29b1dcd84ab8d7fbb35f31f150b5e2885c046db1.zip
* enc/Makefile.in (RM): added.
* enc/depend (encs): sort in alpha-numeric order. * enc/depend (clean, distclean): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/depend')
-rw-r--r--enc/depend11
1 files changed, 10 insertions, 1 deletions
diff --git a/enc/depend b/enc/depend
index de0e092a0..f5eeafe9d 100644
--- a/enc/depend
+++ b/enc/depend
@@ -1,4 +1,6 @@
-! encs = (Dir.open($srcdir) {|d| d.grep(/.+\.c\z/)} - BUILTIN_ENCS).each {|e| e.chomp!(".c")}
+! encs = Dir.open($srcdir) {|d| d.grep(/.+\.c\z/)} - BUILTIN_ENCS
+! encs.each {|e| e.chomp!(".c")}
+! encs = encs.sort_by {|e| e.split(/(\d+)/).map {|n| Integer(n) rescue n}}
VPATH = <% %w[$(arch_hdrdir)/ruby $(hdrdir)/ruby $(top_srcdir) $(srcdir)].join(CONFIG["PATH_SEPARATOR"]) %>
@@ -22,3 +24,10 @@ $(ENCSODIR)/<%e%>.$(DLEXT): <%e%>.$(OBJEXT)
! encs.each do |e|
<%e%>.$(OBJEXT): <%e%>.c
! end
+
+clean:
+ $(RM) $(ENCSOS)
+ $(RM) $(ENCOBJS)
+
+distclean: clean
+ $(RM) enc.mk