summaryrefslogtreecommitdiff
path: root/enc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-29 11:31:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-29 11:31:23 +0000
commit4f15664f6e758b34d0925b224fe9ae87c64e114e (patch)
treece6ff95b44f2049352a51983ca5a59e0c5e59a51 /enc
parent0dfd81cb2397600ce92bd690f4c4f9152518b952 (diff)
* enc/depend (clean): remove name2ctype.h when out-of-place build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r--enc/depend5
1 files changed, 5 insertions, 0 deletions
diff --git a/enc/depend b/enc/depend
index 7285649016..e9a5ad08e7 100644
--- a/enc/depend
+++ b/enc/depend
@@ -1,3 +1,4 @@
+% inplace = File.identical?($srcdir, ".")
% workdirs = %w"$(ENCSODIR) $(TRANSSODIR) enc enc/trans"
% CONFIG["WORKDIRS"] = workdirs.join(' ')
% CONFIG["DLDFLAGS"].sub!(/(\A|\s)(-\S+(?:\s*\w*)?\$\(TARGET\)\S*)/, '\1')
@@ -145,6 +146,10 @@ clean:
$(Q)$(RM) <%=pathrep[clean]%>
% end
% @ignore_error = $nmake ? '' : ' 2> /dev/null || true'
+% unless inplace
+ $(Q)$(RM) enc/unicode/name2ctype.h
+ -$(Q)$(RMDIR) enc/unicode<%=@ignore_error%>
+% end
% workdirs.reverse_each do|dir|
-$(Q)$(RMDIR) <%=pathrep[dir]%><%=@ignore_error%>
% end