mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Ignore failures on removing ext sub directories
When multiple libraries exist in a subdirectory under `ext`, `rmdir -p` may fail, because other directories have not been removed yet or the parent directory has been removed by other `distclean`. `rmdir` in GNU coreutils has `--ignore-fail-on-non-empty` option for the former case but others may not, and the latter race condition is not avoidable anyway.
This commit is contained in:
parent
51f4f1414f
commit
9f60fd9d89
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ ext/extinit.<%=objext%>:
|
|||
$(Q)<%= submake %><%=mflags%> V=$(V) $(@F)
|
||||
% if /^(dist|real)clean$/ =~ tgt
|
||||
$(Q)$(RM) <%=t[%r[\A(?:\.[^/]+/)?(?:[^/]+/){2}]]%>exts.mk
|
||||
$(Q)$(RMDIRS) $(@D)
|
||||
-$(Q)$(RMDIRS) $(@D)
|
||||
% end
|
||||
% end
|
||||
% end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue