summaryrefslogtreecommitdiff
path: root/enc
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
commit359115948aa43af6a69b03ec1ddf6d3afac733e9 (patch)
treebc484615b8f764135194641a49493e313f4c53f3 /enc
parent77629d2cbe4931e3033ae73cef2e9adf6c1c0373 (diff)
* enc/Makefile.in (RM): added.
* enc/depend (encs): sort in alpha-numeric order. * enc/depend (clean, distclean): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r--enc/Makefile.in2
-rw-r--r--enc/depend11
2 files changed, 12 insertions, 1 deletions
diff --git a/enc/Makefile.in b/enc/Makefile.in
index 792fb9fc21..6cb9789976 100644
--- a/enc/Makefile.in
+++ b/enc/Makefile.in
@@ -24,3 +24,5 @@ XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)
LIBS = @LIBS@ $(EXTLIBS)
LDSHARED = @LDSHARED@
DLDFLAGS = @DLDFLAGS@ $(EXTLDFLAGS) @ARCH_FLAG@
+
+RM = @RM@
diff --git a/enc/depend b/enc/depend
index de0e092a00..f5eeafe9dc 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