summaryrefslogtreecommitdiffstats
path: root/enc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-08 15:17:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-08 15:17:52 +0000
commit5cb57910facd43ab2e0447f71cf20c532b4139a8 (patch)
tree9a60607742e10a45ebdf33d1f8798472399fe18a /enc
parent4ff58a14ce9b458ea9ef9988194ca2a2c7e4a38f (diff)
downloadruby-5cb57910facd43ab2e0447f71cf20c532b4139a8.tar.gz
ruby-5cb57910facd43ab2e0447f71cf20c532b4139a8.tar.xz
ruby-5cb57910facd43ab2e0447f71cf20c532b4139a8.zip
* enc/depend (clean-srcs): split out from clean.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r--enc/Makefile.in2
-rw-r--r--enc/depend10
2 files changed, 9 insertions, 3 deletions
diff --git a/enc/Makefile.in b/enc/Makefile.in
index d9bb8fd68..8ba04f374 100644
--- a/enc/Makefile.in
+++ b/enc/Makefile.in
@@ -59,5 +59,5 @@ make-workdir:
clean:
-distclean: clean
+distclean: clean clean-srcs
@$(RM) enc.mk
diff --git a/enc/depend b/enc/depend
index 938b15bb2..0cc00336b 100644
--- a/enc/depend
+++ b/enc/depend
@@ -128,9 +128,15 @@ enc/encdb.$(OBJEXT): encdb.h
enc/trans/transdb.$(OBJEXT): transdb.h
clean:
-% %w[$(ENCSOS) $(ENCOBJS) $(ENCCLEANOBJS) $(ENCCLEANLIBS) $(TRANSSOS) $(TRANSOBJS) $(TRANSCLEANOBJS) $(TRANSCLEANLIBS) $(TRANSCSRCS)].each do |clean|
+% %w[$(ENCSOS) $(ENCOBJS) $(ENCCLEANOBJS) $(ENCCLEANLIBS) $(TRANSSOS) $(TRANSOBJS) $(TRANSCLEANOBJS) $(TRANSCLEANLIBS)].each do |clean|
@$(RM) <%=pathrep[clean]%>
% end
-% %w[$(ENCSODIR)/trans $(ENCSODIR) enc/trans enc].each do|dir|
+% %w[$(TRANSSODIR) $(ENCSODIR)].each do|dir|
+ @-rmdir <%=pathrep[dir]%>
+% end
+
+clean-srcs:
+ @$(RM) <%=pathrep['$(TRANSCSRCS)']%>
+% %w[enc/trans enc].each do|dir|
@-rmdir <%=pathrep[dir]%>
% end